diff options
| author | Fuwn <[email protected]> | 2025-03-15 17:05:53 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-03-15 17:05:53 -0700 |
| commit | 67e63bd12a076da70a144071b9c0ee578ec691f4 (patch) | |
| tree | 8077ee8caadc9075412cf682ac57dd4634f903a6 | |
| parent | feat: Development commit (diff) | |
| download | sora-testing-67e63bd12a076da70a144071b9c0ee578ec691f4.tar.xz sora-testing-67e63bd12a076da70a144071b9c0ee578ec691f4.zip | |
feat: Development commit
| -rw-r--r-- | Sora/Views/Settings/Section/SettingsSettingsView.swift | 14 | ||||
| -rw-r--r-- | Sora/Views/Settings/SettingsView.swift | 15 |
2 files changed, 18 insertions, 11 deletions
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 |