You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letresponse=AlertUtil.twoButtonAlert(question:"Restore Default Shortcuts?".localized, text:"This will restore all shortcuts to their default state.".localized, confirmText:"Restore".localized, cancelText:"Cancel".localized)
237
+
if response ==.alertFirstButtonReturn {
238
+
239
+
foractioninWindowAction.active {
240
+
ShortcutStore.resetShortcut(forKey: action.name)
241
+
}
242
+
243
+
forkeyinTodoManager.defaultsKeys {
244
+
ShortcutStore.resetShortcut(forKey: key)
245
+
}
246
+
TodoManager.initToggleShortcut()
247
+
TodoManager.initReflowShortcut()
248
+
249
+
Notification.Name.changeDefaults.post()
250
+
Notification.Name.shortcutsChanged.post()
249
251
}
250
-
Notification.Name.changeDefaults.post()
251
-
Notification.Name.shortcutsChanged.post()
252
-
253
-
// Restore snap areas
254
-
Defaults.portraitSnapAreas.typedValue =nil
255
-
Defaults.landscapeSnapAreas.typedValue =nil
256
-
Notification.Name.defaultSnapAreas.post()
257
252
}
258
253
259
254
@IBActionfunc exportConfig(_ sender:NSButton){
@@ -368,8 +363,12 @@ class SettingsViewController: NSViewController {
0 commit comments