From 67e63bd12a076da70a144071b9c0ee578ec691f4 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sat, 15 Mar 2025 17:05:53 -0700 Subject: feat: Development commit --- Sora/Views/Settings/Section/SettingsSettingsView.swift | 14 ++++++++++++++ Sora/Views/Settings/SettingsView.swift | 15 ++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 Sora/Views/Settings/Section/SettingsSettingsView.swift diff --git a/Sora/Views/Settings/Section/SettingsSettingsView.swift b/Sora/Views/Settings/Section/SettingsSettingsView.swift new file mode 100644 index 0000000..92b1c32 --- /dev/null +++ b/Sora/Views/Settings/Section/SettingsSettingsView.swift @@ -0,0 +1,14 @@ +import SwiftUI + +struct SettingsSettingsView: View { + @EnvironmentObject var settings: SettingsManager + + var body: some View { + Button("Reset to Defaults") { + settings.resetToDefaults() + } + #if os(macOS) + .frame(maxWidth: .infinity, alignment: .trailing) + #endif + } +} diff --git a/Sora/Views/Settings/SettingsView.swift b/Sora/Views/Settings/SettingsView.swift index 59271ad..1cd5255 100644 --- a/Sora/Views/Settings/SettingsView.swift +++ b/Sora/Views/Settings/SettingsView.swift @@ -1,8 +1,6 @@ import SwiftUI struct SettingsView: View { - @EnvironmentObject var settings: SettingsManager - var body: some View { NavigationStack { Form { @@ -22,17 +20,12 @@ struct SettingsView: View { SettingsSearchView() } - Section(header: Text("Import & Export")) { - SettingsImportExportView() + Section(header: Text("Settings")) { + SettingsSettingsView() } - Section(header: Text("Settings")) { - Button("Reset to Defaults") { - settings.resetToDefaults() - } - #if os(macOS) - .frame(maxWidth: .infinity, alignment: .trailing) - #endif + Section(header: Text("Import & Export")) { + SettingsImportExportView() } #if DEBUG -- cgit v1.2.3