diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/AppStore.js | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js index 1db61a64e..7784ff1f9 100644 --- a/src/stores/AppStore.js +++ b/src/stores/AppStore.js | |||
@@ -3,7 +3,6 @@ import { | |||
3 | action, computed, observable, reaction, | 3 | action, computed, observable, reaction, |
4 | } from 'mobx'; | 4 | } from 'mobx'; |
5 | import moment from 'moment'; | 5 | import moment from 'moment'; |
6 | import key from 'keymaster'; | ||
7 | import { getDoNotDisturb } from '@meetfranz/electron-notification-state'; | 6 | import { getDoNotDisturb } from '@meetfranz/electron-notification-state'; |
8 | import AutoLaunch from 'auto-launch'; | 7 | import AutoLaunch from 'auto-launch'; |
9 | import prettyBytes from 'pretty-bytes'; | 8 | import prettyBytes from 'pretty-bytes'; |
@@ -157,28 +156,6 @@ export default class AppStore extends Store { | |||
157 | this.stores.router.push(url); | 156 | this.stores.router.push(url); |
158 | }); | 157 | }); |
159 | 158 | ||
160 | |||
161 | // Global Mute | ||
162 | key( | ||
163 | '⌘+shift+m ctrl+shift+m', () => { | ||
164 | this.actions.app.toggleMuteApp(); | ||
165 | }, | ||
166 | ); | ||
167 | |||
168 | // We need to add an additional key listener for ctrl+ on windows. Otherwise only ctrl+shift+ would work | ||
169 | if (isWindows) { | ||
170 | key( | ||
171 | 'ctrl+=', () => { | ||
172 | debug('Windows: zoom in via ctrl+'); | ||
173 | const { webview } = this.stores.services.active; | ||
174 | webview.getZoomLevel((level) => { | ||
175 | // level 9 =~ +300% and setZoomLevel wouldnt zoom in further | ||
176 | if (level < 9) webview.setZoomLevel(level + 1); | ||
177 | }); | ||
178 | }, | ||
179 | ); | ||
180 | } | ||
181 | |||
182 | this.locale = this._getDefaultLocale(); | 159 | this.locale = this._getDefaultLocale(); |
183 | 160 | ||
184 | this._healthCheck(); | 161 | this._healthCheck(); |
@@ -290,7 +267,6 @@ export default class AppStore extends Store { | |||
290 | 267 | ||
291 | @action _muteApp({ isMuted, overrideSystemMute = true }) { | 268 | @action _muteApp({ isMuted, overrideSystemMute = true }) { |
292 | this.isSystemMuteOverridden = overrideSystemMute; | 269 | this.isSystemMuteOverridden = overrideSystemMute; |
293 | |||
294 | this.actions.settings.update({ | 270 | this.actions.settings.update({ |
295 | type: 'app', | 271 | type: 'app', |
296 | data: { | 272 | data: { |