You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jockey/SettingsView.swift
+33-1Lines changed: 33 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ struct SettingsView: View {
40
40
Label("Settings", systemImage:"gear")
41
41
}
42
42
}
43
-
.frame(width:500, height:400)
43
+
.frame(width:500, height:500)
44
44
.onAppear{
45
45
refreshSystemShares()
46
46
pollingInterval = shareManager.pollingInterval
@@ -316,8 +316,40 @@ struct SettingsView: View {
316
316
}
317
317
}
318
318
319
+
VStack(alignment:.leading, spacing:8){
320
+
Text("Reset")
321
+
.font(.subheadline)
322
+
.bold()
323
+
324
+
Text("Reset the app to its initial state, removing all shares and settings.")
325
+
.font(.caption)
326
+
.foregroundColor(.secondary)
327
+
328
+
Button("Reset App State"){
329
+
// Show confirmation alert
330
+
letalert=NSAlert()
331
+
alert.messageText ="Reset App State"
332
+
alert.informativeText ="This will reset the app to its initial state, removing all shares and settings. THE APP WILL QUIT AFTER RESET. Are you sure you want to continue?"
0 commit comments