fix: Add zen mode to preferences, remove shortcut (#2003)
This commit is contained in:
parent
9564985a4e
commit
56405f52bb
12 changed files with 35 additions and 31 deletions
|
@ -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')
|
||||
},
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue