summaryrefslogtreecommitdiff
path: root/Sora/Views/Settings/Section
diff options
context:
space:
mode:
Diffstat (limited to 'Sora/Views/Settings/Section')
-rw-r--r--Sora/Views/Settings/Section/SettingsSettingsView.swift14
1 files changed, 14 insertions, 0 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
+ }
+}