UiManager: default to notebookbar by default
In case of misconfiguration (missing userInterfaceMode) or "default" userInterfaceMode, which is the default, use notebookbar. Signed-off-by: Méven Car <meven.car@collabora.com> Change-Id: I00ee65edb21fcf80724bc83f947341dfdc5c8ed6
parent
62239215da
commit
5eddd9ca51
|
@ -76,9 +76,10 @@ L.Control.UIManager = L.Control.extend({
|
|||
},
|
||||
|
||||
shouldUseNotebookbarMode: function() {
|
||||
var forceCompact = this.getSavedStateOrDefault('compactMode', null);
|
||||
return (window.userInterfaceMode === 'notebookbar' && forceCompact === null)
|
||||
|| forceCompact === false;
|
||||
let forceCompact = this.getSavedStateOrDefault('compactMode', null);
|
||||
// all other cases should default to notebookbar
|
||||
let shouldUseClassic = (window.userInterfaceMode === 'classic' && forceCompact == null) || forceCompact === true;
|
||||
return !shouldUseClassic;
|
||||
},
|
||||
|
||||
// Dark mode toggle
|
||||
|
|
Loading…
Reference in New Issue