fix(darkmode): Fix toggling darkmode in notebookbar
Signed-off-by: Julius Härtl <jus@bitgrid.net> Change-Id: Ia8b490de6144df771e5ee115c068b87e997e3ccb
This commit is contained in:
parent
46a44c743a
commit
24446e274c
1 changed files with 2 additions and 2 deletions
|
@ -106,14 +106,14 @@ L.Control.UIManager = L.Control.extend({
|
|||
};
|
||||
app.socket.sendMessage('uno .uno:ChangeTheme ' + JSON.stringify(cmd));
|
||||
}
|
||||
if (this.getSavedStateOrDefault('CompactMode', null)) {
|
||||
if (this.getCurrentMode() === 'classic') {
|
||||
this.refreshMenubar();
|
||||
this.refreshToolbar();
|
||||
}
|
||||
else {
|
||||
this.refreshNotebookbar();
|
||||
}
|
||||
this.refreshSidebar();
|
||||
this.refreshToolbar();
|
||||
},
|
||||
initDarkModeFromSettings: function() {
|
||||
var selectedMode = this.getDarkModeState();
|
||||
|
|
Loading…
Reference in a new issue