mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +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,14 +170,19 @@ internal class SettingsWindow : Window
|
|||
{
|
||||
this.Save();
|
||||
|
||||
this.IsOpen = false;
|
||||
if (!ImGui.IsKeyDown(ImGuiKey.ModShift))
|
||||
this.IsOpen = false;
|
||||
}
|
||||
|
||||
ImGui.PopStyleVar();
|
||||
ImGui.PopFont();
|
||||
|
||||
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)
|
||||
ImGui.EndDisabled();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue