Skip to content

Commit ad86a55

Browse files
author
leminlimez
committed
toggles experimental keys on startup
1 parent 27b0c19 commit ad86a55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TrollTools/Views/Tools/ToolsView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ struct ToolsView: View {
146146
.navigationTitle("Tools")
147147
.onAppear {
148148
for (i, option) in springboardOptions.enumerated() {
149-
// springboardOptions[i].value = getSpringboardOption(key: option.key) as? Bool ?? false
149+
springboardOptions[i].value = getSpringboardOption(key: option.key) as? Bool ?? false
150150
}
151151
}
152152
}
@@ -158,7 +158,7 @@ struct ToolsView: View {
158158
guard let data = try? Data(contentsOf: url) else { return nil }
159159
let plist = try? PropertyListSerialization.propertyList(from: data, format: nil) as? [String:Any]
160160

161-
return plist?["SBDontLockAfterCrash"]
161+
return plist?[key]
162162
}
163163

164164
func toggleSpringboardOption(key: String, value: Any) throws {

0 commit comments

Comments
 (0)