Skip to content

Commit

Permalink
Fix sidebar config migration (#1306)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Andrei <[email protected]>
  • Loading branch information
whitecrownclown and Daniel Andrei authored Mar 17, 2020
1 parent dce6cfd commit 10205a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 0 additions & 2 deletions source/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -319,8 +319,6 @@ function updateSidebar(): void {
break;
default:
}

ipc.callMain('set-sidebar');
}

async function updateDoNotDisturb(): Promise<void> {
Expand Down
3 changes: 2 additions & 1 deletion source/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ function updateVibrancySetting(store: Store): void {
function updateSidebarSetting(store: Store): void {
if (store.get('sidebarHidden')) {
store.set('sidebar', 'hidden');
} else {
store.delete('sidebarHidden');
} else if (!store.has('sidebar')) {
store.set('sidebar', 'default');
}
}
Expand Down

0 comments on commit 10205a2

Please sign in to comment.