From 59331bcb38085770868e982ae7e0158ed223f3cf Mon Sep 17 00:00:00 2001 From: Kyle Date: Thu, 17 Oct 2024 00:32:56 +0800 Subject: [PATCH] Adjust TerminateAfterLastWindowClosed toggle location Move from advanced pane into general --- Xcodes/Frontend/Preferences/AdvancedPreferencePane.swift | 5 ----- Xcodes/Frontend/Preferences/GeneralPreferencePane.swift | 6 ++++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Xcodes/Frontend/Preferences/AdvancedPreferencePane.swift b/Xcodes/Frontend/Preferences/AdvancedPreferencePane.swift index 77d2bf8e..c9531c5c 100644 --- a/Xcodes/Frontend/Preferences/AdvancedPreferencePane.swift +++ b/Xcodes/Frontend/Preferences/AdvancedPreferencePane.swift @@ -151,11 +151,6 @@ struct AdvancedPreferencePane: View { } } .groupBoxStyle(PreferencesGroupBoxStyle()) - - GroupBox(label: Text("Misc")) { - Toggle("TerminateAfterLastWindowClosed", isOn: $appState.terminateAfterLastWindowClosed) - } - .groupBoxStyle(PreferencesGroupBoxStyle()) } } } diff --git a/Xcodes/Frontend/Preferences/GeneralPreferencePane.swift b/Xcodes/Frontend/Preferences/GeneralPreferencePane.swift index 0e714e42..b15f5c6d 100644 --- a/Xcodes/Frontend/Preferences/GeneralPreferencePane.swift +++ b/Xcodes/Frontend/Preferences/GeneralPreferencePane.swift @@ -20,6 +20,12 @@ struct GeneralPreferencePane: View { NotificationsView().environmentObject(appState) } .groupBoxStyle(PreferencesGroupBoxStyle()) + Divider() + + GroupBox(label: Text("Misc")) { + Toggle("TerminateAfterLastWindowClosed", isOn: $appState.terminateAfterLastWindowClosed) + } + .groupBoxStyle(PreferencesGroupBoxStyle()) } } }