Set show-sidebar to true by default.

This commit is contained in:
Zhongyi Tong
2017-08-02 01:27:45 +08:00
parent 9e4e5e9bfd
commit 769972fc4b
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ class ServerManagerView {
} }
initSidebar() { initSidebar() {
const showSidebar = ConfigUtil.getConfigItem('show-sidebar'); const showSidebar = ConfigUtil.getConfigItem('show-sidebar', true);
this.toggleSidebar(showSidebar); this.toggleSidebar(showSidebar);
} }

View File

@@ -126,7 +126,7 @@ class GeneralSection extends BaseComponent {
this.$silentOptionSettings.appendChild($silentOption); this.$silentOptionSettings.appendChild($silentOption);
$silentOption.addEventListener('click', () => { $silentOption.addEventListener('click', () => {
const newValue = !ConfigUtil.getConfigItem('silent'); const newValue = !ConfigUtil.getConfigItem('silent', true);
ConfigUtil.setConfigItem('silent', newValue); ConfigUtil.setConfigItem('silent', newValue);
this.initSilentOption(); this.initSilentOption();
}); });