Skip to content

Commit a73408a

Browse files
committed
debugging
1 parent 78dd233 commit a73408a

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

lara/views/tweaks/MiscView.swift

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,20 @@ struct MiscView: View {
9090
tweak(name: "Continuity Debugging", path: FileLocation.globalPreferences.rawValue, key: "IDSDiagnosticsEnabled"),
9191
tweak(name: "FaceTime Debugging", path: FileLocation.globalPreferences.rawValue, key: "VCDiagnosticsEnabled"),
9292
tweak(name: "Show Accessory Developer Settings", path: FileLocation.globalPreferences.rawValue, key: "AccessoryDeveloperEnabled"),
93-
tweak(name: "App Store Debug Gesture", path: FileLocation.globalPreferences.rawValue, key: "debugGestureEnabled"),
94-
tweak(name: "Notes Debug Mode", path: FileLocation.globalPreferences.rawValue, key: "DebugModeEnabled"),
95-
tweak(name: "Show Touches With Debug Info", path: FileLocation.globalPreferences.rawValue, key: "BKDigitizerVisualizeTouches"),
93+
tweak(name: "App Store Debug Gesture", path: FileLocation.appstore.rawValue, key: "debugGestureEnabled"),
94+
tweak(name: "Notes Debug Mode", path: FileLocation.notes.rawValue, key: "DebugModeEnabled"),
95+
tweak(name: "Show Touches With Debug Info", path: FileLocation.backboardd.rawValue, key: "BKDigitizerVisualizeTouches"),
9696
tweak(name: "Hide respring icon", path: FileLocation.backboardd.rawValue, key: "BKHideAppleLogoOnLaunch"),
97-
tweak(name: "Vibrate on Raise-to-Wake", path: FileLocation.globalPreferences.rawValue, key: "EnableWakeGestureHaptic"),
98-
tweak(name: "Play Sound on Paste", path: FileLocation.globalPreferences.rawValue, key: "PlaySoundOnPaste"),
99-
tweak(name: "Show Notifications for System Pastes", path: FileLocation.globalPreferences.rawValue, key: "AnnounceAllPastes"),
97+
tweak(name: "Vibrate on Raise-to-Wake", path: FileLocation.coremotion.rawValue, key: "EnableWakeGestureHaptic"),
98+
tweak(name: "Play Sound on Paste", path: FileLocation.pasteboard.rawValue, key: "PlaySoundOnPaste"),
99+
tweak(name: "Show Notifications for System Pastes", path: FileLocation.pasteboard.rawValue, key: "AnnounceAllPastes"),
100100
]),
101101
]
102102

103103
var body: some View {
104104
NavigationStack {
105105
List {
106-
Section(header: HeaderLabel(text: "Applying", icon: "checkmark")) {
106+
Section(header: HeaderLabel(text: "Applying", icon: "checkmark"), footer: Text("After applying, please fully reboot your device to actually see the changes. These tweaks were copied from [Nugget](https://github.com/leminlimez/Nugget) and ported to work with DarkSword.")) {
107107
Button("Apply tweaks") {
108108
apply()
109109
}
@@ -154,6 +154,7 @@ struct MiscView: View {
154154
if result.ok, let value = result.value as? Bool {
155155
tweak.state.og = value
156156
tweak.state.enabled = value
157+
mgr.logmsg("Loaded tweak \(tweak.key) at \(tweak.path) with value \(value)")
157158
} else if !(result.message == "key \(tweak.key) not found") {
158159
errormsg += "Failed to read \(tweak.path): \(result.message)\n"
159160
tweak.readfailed = true

0 commit comments

Comments
 (0)