fix: Add zen mode to preferences, remove shortcut (#2003)

This commit is contained in:
manuq 2023-04-23 07:21:33 -03:00 committed by GitHub
parent 9564985a4e
commit 56405f52bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 35 additions and 31 deletions

View file

@ -274,10 +274,10 @@ export function provideGlobalCommands() {
scope: 'Preferences',
name: () => t('command.toggle_zen_mode'),
icon: () => userSettings.value.zenMode ? 'i-ri:layout-right-2-line' : 'i-ri:layout-right-line',
icon: () => userSettings.value.preferences.zenMode ? 'i-ri:layout-right-2-line' : 'i-ri:layout-right-line',
onActivate() {
userSettings.value.zenMode = !userSettings.value.zenMode
togglePreferences('zenMode')
},
})