TS complete

This commit is contained in:
Mo Bitar
2020-04-13 10:04:19 -05:00
parent 3d955e4b7d
commit 7ee9610dca
29 changed files with 351 additions and 435 deletions

View File

@@ -956,7 +956,7 @@ class EditorCtrl extends PureCtrl {
}
}
async toggleWebPrefKey(key: string) {
async toggleWebPrefKey(key: WebPrefKey) {
(this as any)[key] = !(this as any)[key];
this.application.getPrefsService().setUserPrefValue(
key,

View File

@@ -655,7 +655,7 @@ class NotesCtrl extends PureCtrl {
this.setShowMenuFalse();
}
toggleWebPrefKey(key: string) {
toggleWebPrefKey(key: WebPrefKey) {
this.application!.getPrefsService().setUserPrefValue(key, !this.state[key]);
this.application!.getPrefsService().syncUserPreferences();
}