]> git.r.bdr.sh - rbdr/captura/blobdiff - Captura/Presentation/Settings/AdvancedSettings.swift
Add multimonitor support
[rbdr/captura] / Captura / Presentation / Settings / AdvancedSettings.swift
index 66314b481582ced4359fa2a2e8b2bc1f39c92a91..cf5794e53e753b188172c983510b07a904397aa8 100644 (file)
@@ -1,12 +1,11 @@
 import SwiftUI
 import SwiftUI
-import CloudStorage
 
 struct AdvancedSettings: View {
   
 
 struct AdvancedSettings: View {
   
-  @CloudStorage("backendUrl") var backendUrl: String = ""
-  @CloudStorage("backendFormat") var backendFormat: OutputFormatSetting = .gifOnly
-  @CloudStorage("keepFiles") var keepFiles = true
-  @CloudStorage("allowURLAutomation") var allowURLAutomation = false
+  @AppStorage("backendUrl") var backendUrl: String = ""
+  @AppStorage("backendFormat") var backendFormat: OutputFormatSetting = .gifOnly
+  @AppStorage("keepFiles") var keepFiles = true
+  @AppStorage("allowURLAutomation") var allowURLAutomation = false
   @State var showConfirmation = false
   
   private var anyState: String { "\(backendUrl), \(backendFormat), \(keepFiles), \(allowURLAutomation)" }
   @State var showConfirmation = false
   
   private var anyState: String { "\(backendUrl), \(backendFormat), \(keepFiles), \(allowURLAutomation)" }