mirror of
https://github.com/zadam/trilium.git
synced 2025-12-12 18:34:24 +01:00
fix(global_menu): layout switcher sometimes fails
This commit is contained in:
parent
a4b79a2dc9
commit
cb382c9537
@ -108,8 +108,8 @@ function DevelopmentOptions() {
|
|||||||
<FormDropdownDivider />
|
<FormDropdownDivider />
|
||||||
<FormListItem
|
<FormListItem
|
||||||
icon={newLayoutEnabled ? "bx bx-layout" : "bx bxs-layout"}
|
icon={newLayoutEnabled ? "bx bx-layout" : "bx bxs-layout"}
|
||||||
onClick={() => {
|
onClick={async () => {
|
||||||
toggleExperimentalFeature("new-layout", !newLayoutEnabled);
|
await toggleExperimentalFeature("new-layout", !newLayoutEnabled);
|
||||||
reloadFrontendApp();
|
reloadFrontendApp();
|
||||||
}}
|
}}
|
||||||
>{!newLayoutEnabled ? "Switch to new layout" : "Switch to old layout"}</FormListItem>
|
>{!newLayoutEnabled ? "Switch to new layout" : "Switch to old layout"}</FormListItem>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user