This commit is contained in:
Dmytro Sych 2017-02-08 22:13:46 -05:00
Родитель 6711e83ba6
Коммит 8e9cb03a8d
1 изменённых файлов: 17 добавлений и 17 удалений

Просмотреть файл

@ -70,10 +70,25 @@ define(function (require, exports, module) {
// the ExtensionLoader logic (avoids circular dependencies)
Theme.init(BrambleStartupState.ui("theme"));
var previewMode = BrambleStartupState.ui("previewMode");
if(previewMode) {
switch(previewMode) {
case "desktop":
showDesktopView(true);
break;
case "mobile":
showMobileView(true);
break;
default:
console.warn("[Bramble] unknown preview mode: `" + previewMode + "`");
}
}
var wordWrap = BrambleStartupState.ui("wordWrap");
if(typeof wordWrap === "boolean") {
PreferencesManager.set("wordWrap", wordWrap);
}
var sidebarWidth = BrambleStartupState.ui("sidebarWidth");
if(sidebarWidth) {
SidebarView.resize(sidebarWidth);
@ -88,24 +103,9 @@ define(function (require, exports, module) {
}
}
/*
var firstPaneWidth = BrambleStartupState.ui("firstPaneWidth");
if(firstPaneWidth) {
$("#first-pane").width(firstPaneWidth);
}*/
var previewMode = BrambleStartupState.ui("previewMode");
if(previewMode) {
switch(previewMode) {
case "desktop":
showDesktopView(true);
break;
case "mobile":
showMobileView(true);
break;
default:
console.warn("[Bramble] unknown preview mode: `" + previewMode + "`");
}
}
var fontSize = BrambleStartupState.ui("fontSize");