File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,22 @@ class Preferences: ObservableObject {
117
117
@AppStorage ( " SupportEmail " ) var supportEmail : String = " "
118
118
119
119
@AppStorage ( " SupportPhone " ) var supportPhone : String = " "
120
+
121
+ // MARK: - Elevate privileges
122
+
123
+ @AppStorage ( " EnableElevation " ) var enableElevation : Bool = false
124
+
125
+ @AppStorage ( " ShowElevateTrayCard " ) var showElevateTrayCard : Bool = true
126
+
127
+ @AppStorage ( " MaxElevationTime " ) var maxElevationTime : Double = 300
128
+
129
+ @AppStorage ( " RequireResonForElevation " ) var requireReasonForElevation : Bool = true
130
+
131
+ @AppStorage ( " ReasonMinLength " ) var reasonMinLength : Int = 10
132
+
133
+ @AppStorage ( " ElevationWebhookUrl " ) var elevationWebhookURL : String = " "
134
+
135
+ @AppStorage ( " ElevationSeverity " ) var elevationSeverity : Int = 6 // Default to "Informational"
120
136
121
137
init ( ) {
122
138
ensureDefaultsInitialized ( )
@@ -298,7 +314,7 @@ class Preferences: ObservableObject {
298
314
} else if let value = value as? Double {
299
315
writeCommand = " defaults write \( bundleIdentifier) \( key) -float \( value) "
300
316
} else {
301
- print ( " Unsupported value type for key: \( key) " )
317
+ Logger . shared . logError ( " Unsupported value type for key: \( key) " )
302
318
continue
303
319
}
304
320
You can’t perform that action at this time.
0 commit comments