Adjust TerminateAfterLastWindowClosed toggle location

Move from advanced pane into general
This commit is contained in:
Kyle 2024-10-17 00:32:56 +08:00
parent 3d6908f526
commit 59331bcb38
No known key found for this signature in database
GPG key ID: 7056354A082F5CC2
2 changed files with 6 additions and 5 deletions

View file

@ -151,11 +151,6 @@ struct AdvancedPreferencePane: View {
} }
} }
.groupBoxStyle(PreferencesGroupBoxStyle()) .groupBoxStyle(PreferencesGroupBoxStyle())
GroupBox(label: Text("Misc")) {
Toggle("TerminateAfterLastWindowClosed", isOn: $appState.terminateAfterLastWindowClosed)
}
.groupBoxStyle(PreferencesGroupBoxStyle())
} }
} }
} }

View file

@ -20,6 +20,12 @@ struct GeneralPreferencePane: View {
NotificationsView().environmentObject(appState) NotificationsView().environmentObject(appState)
} }
.groupBoxStyle(PreferencesGroupBoxStyle()) .groupBoxStyle(PreferencesGroupBoxStyle())
Divider()
GroupBox(label: Text("Misc")) {
Toggle("TerminateAfterLastWindowClosed", isOn: $appState.terminateAfterLastWindowClosed)
}
.groupBoxStyle(PreferencesGroupBoxStyle())
} }
} }
} }