mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +01:00
feat: don't close settings window when saving, if shift is held
This commit is contained in:
parent
31a4f895a0
commit
c7215c25a5
1 changed files with 7 additions and 2 deletions
|
|
@ -170,6 +170,7 @@ internal class SettingsWindow : Window
|
||||||
{
|
{
|
||||||
this.Save();
|
this.Save();
|
||||||
|
|
||||||
|
if (!ImGui.IsKeyDown(ImGuiKey.ModShift))
|
||||||
this.IsOpen = false;
|
this.IsOpen = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -177,7 +178,11 @@ internal class SettingsWindow : Window
|
||||||
ImGui.PopFont();
|
ImGui.PopFont();
|
||||||
|
|
||||||
if (ImGui.IsItemHovered())
|
if (ImGui.IsItemHovered())
|
||||||
ImGui.SetTooltip(Loc.Localize("DalamudSettingsSaveAndExit", "Save changes and close"));
|
{
|
||||||
|
ImGui.SetTooltip(!ImGui.IsKeyDown(ImGuiKey.ModShift)
|
||||||
|
? Loc.Localize("DalamudSettingsSaveAndExit", "Save changes and close")
|
||||||
|
: Loc.Localize("DalamudSettingsSaveAndExit", "Save changes"));
|
||||||
|
}
|
||||||
|
|
||||||
if (invalid)
|
if (invalid)
|
||||||
ImGui.EndDisabled();
|
ImGui.EndDisabled();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue