editor-menu-bar id

This commit is contained in:
Mo Bitar
2018-12-13 01:38:22 -06:00
parent 7cba67ce69
commit 9200055616
3 changed files with 11 additions and 10 deletions

View File

@@ -516,7 +516,7 @@ angular.module('app')
this.loadPreferences = function() {
this.monospaceFont = authManager.getUserPrefValue("monospaceFont", "monospace");
this.spellcheck = authManager.getUserPrefValue("spellcheck", true);
this.marginResizersEnabled = authManager.getUserPrefValue("marginResizersEnabled", false);
this.marginResizersEnabled = authManager.getUserPrefValue("marginResizersEnabled", true);
if(!document.getElementById("editor-content")) {
// Elements have not yet loaded due to ng-if around wrapper

View File

@@ -33,7 +33,7 @@ class ComponentManager {
desktopManager.registerUpdateObserver((component) => {
// Reload theme if active
if(component.active && component.isTheme()) {
this.postActiveThemeToAllComponents();
this.postActiveThemesToAllComponents();
}
})
@@ -147,13 +147,14 @@ class ComponentManager {
});
}
postActiveThemeToAllComponents() {
postActiveThemesToAllComponents() {
for(var component of this.components) {
// Skip over components that are themes themselves,
// or components that are not active, or components that don't have a window
if(component.isTheme() || !component.active || !component.window) {
continue;
}
this.postActiveThemesToComponent(component);
}
}
@@ -862,7 +863,7 @@ class ComponentManager {
}
if(component.area == "themes") {
this.postActiveThemeToAllComponents();
this.postActiveThemesToAllComponents();
}
}
@@ -895,7 +896,7 @@ class ComponentManager {
})
if(component.area == "themes") {
this.postActiveThemeToAllComponents();
this.postActiveThemesToAllComponents();
}
}
@@ -922,7 +923,7 @@ class ComponentManager {
})
if(component.area == "themes") {
this.postActiveThemeToAllComponents();
this.postActiveThemesToAllComponents();
}
//
@@ -944,7 +945,7 @@ class ComponentManager {
}
if(component.area == "themes") {
this.postActiveThemeToAllComponents();
this.postActiveThemesToAllComponents();
}
})
}