Ensure that notifications and auto-hide window settings are saved

pull/1/head
Scott Nonnenberg 7 years ago
parent d8e5e5fcf2
commit c54ba8d1fa

@ -134,7 +134,7 @@
},
getHideMenuBar: () => storage.get('hide-menu-bar'),
setHideMenuBar: value => {
storage.get('hide-menu-bar', value);
storage.put('hide-menu-bar', value);
window.setAutoHideMenuBar(value);
window.setMenuBarVisibility(!value);
},
@ -142,7 +142,7 @@
getNotificationSetting: () =>
storage.get('notification-setting', 'message'),
setNotificationSetting: value =>
storage.get('notification-setting', value),
storage.put('notification-setting', value),
getAudioNotification: () => storage.get('audio-notification'),
setAudioNotification: value => storage.put('audio-notification', value),

Loading…
Cancel
Save