]> git.r.bdr.sh - rbdr/captura/blobdiff - Captura/Presentation/Settings/OutputSettings.swift
Amend version
[rbdr/captura] / Captura / Presentation / Settings / OutputSettings.swift
index df125419bbd9b945e50f61d5837233b6add7fc06..c59afd75c72e26b30e41612258220555cec76aae 100644 (file)
@@ -5,6 +5,8 @@ struct OutputSettings: View {
   @AppStorage("outputFormats") var outputFormats: OutputFormatSetting = .all
   @AppStorage("frameRate") var frameRate = 10.0
   
+  private var anyState: String { "\(outputFormats), \(frameRate)" }
+  
   var body: some View {
     Form {
       VStack (alignment: .center) {
@@ -35,6 +37,9 @@ struct OutputSettings: View {
       }
       Spacer()
     }
+    .onChange(of: anyState) { _ in
+      NotificationCenter.default.post(name: .reloadConfiguration, object: nil, userInfo: nil)
+    }
   }
 }