mirror of
https://github.com/zadam/trilium.git
synced 2025-10-27 16:26:31 +01:00
feat(zen): use dedicated floating button to stop zen mode
This commit is contained in:
@@ -179,7 +179,10 @@ export default class RootCommandExecutor extends Component {
|
||||
}
|
||||
|
||||
toggleZenModeCommand() {
|
||||
$("body").toggleClass("zen");
|
||||
const $body = $("body");
|
||||
$body.toggleClass("zen");
|
||||
const isEnabled = $body.hasClass("zen");
|
||||
appContext.triggerEvent("zenModeChanged", { isEnabled });
|
||||
}
|
||||
|
||||
firstTabCommand() {
|
||||
|
||||
Reference in New Issue
Block a user