aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-10-30 10:41:14 +0100
committerLibravatar GitHub <noreply@github.com>2017-10-30 10:41:14 +0100
commitf2756edf9f0e672ea6835b12d43a5b9445d222f4 (patch)
tree3c72287bf9b4ce34efde0d8665b793cc3fe53805 /src/stores
parentAdd Linux specific definition for shortcut preview (diff)
parentMerge pull request #150 from meetfranz/feature/menu (diff)
downloadferdium-app-f2756edf9f0e672ea6835b12d43a5b9445d222f4.tar.gz
ferdium-app-f2756edf9f0e672ea6835b12d43a5b9445d222f4.tar.zst
ferdium-app-f2756edf9f0e672ea6835b12d43a5b9445d222f4.zip
Merge branch 'develop' into feature/shortcuts
Diffstat (limited to 'src/stores')
-rw-r--r--src/stores/AppStore.js11
-rw-r--r--src/stores/ServicesStore.js5
2 files changed, 6 insertions, 10 deletions
diff --git a/src/stores/AppStore.js b/src/stores/AppStore.js
index f3c4db0cf..f608a689e 100644
--- a/src/stores/AppStore.js
+++ b/src/stores/AppStore.js
@@ -13,7 +13,7 @@ import locales from '../i18n/translations';
13import { gaEvent } from '../lib/analytics'; 13import { gaEvent } from '../lib/analytics';
14import Miner from '../lib/Miner'; 14import Miner from '../lib/Miner';
15 15
16const { app, getCurrentWindow, powerMonitor } = remote; 16const { app, powerMonitor } = remote;
17const defaultLocale = 'en-US'; 17const defaultLocale = 'en-US';
18 18
19export default class AppStore extends Store { 19export default class AppStore extends Store {
@@ -112,15 +112,6 @@ export default class AppStore extends Store {
112 setTimeout(window.location.reload, 5000); 112 setTimeout(window.location.reload, 5000);
113 }); 113 });
114 114
115 // Open Dev Tools (even in production mode)
116 key('⌘+ctrl+shift+alt+i, ctrl+shift+alt+i', () => {
117 getCurrentWindow().toggleDevTools();
118 });
119
120 key('⌘+ctrl+shift+alt+pageup, ctrl+shift+alt+pageup', () => {
121 this.actions.service.openDevToolsForActiveService();
122 });
123
124 // Set active the next service 115 // Set active the next service
125 key( 116 key(
126 '⌘+pagedown, ctrl+pagedown, ⌘+tab, ctrl+tab', () => { 117 '⌘+pagedown, ctrl+pagedown, ⌘+tab, ctrl+tab', () => {
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index 4510146e0..64e6bb42b 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -41,6 +41,7 @@ export default class ServicesStore extends Store {
41 this.actions.service.openWindow.listen(this._openWindow.bind(this)); 41 this.actions.service.openWindow.listen(this._openWindow.bind(this));
42 this.actions.service.filter.listen(this._filter.bind(this)); 42 this.actions.service.filter.listen(this._filter.bind(this));
43 this.actions.service.resetFilter.listen(this._resetFilter.bind(this)); 43 this.actions.service.resetFilter.listen(this._resetFilter.bind(this));
44 this.actions.service.resetStatus.listen(this._resetStatus.bind(this));
44 this.actions.service.reload.listen(this._reload.bind(this)); 45 this.actions.service.reload.listen(this._reload.bind(this));
45 this.actions.service.reloadActive.listen(this._reloadActive.bind(this)); 46 this.actions.service.reloadActive.listen(this._reloadActive.bind(this));
46 this.actions.service.reloadAll.listen(this._reloadAll.bind(this)); 47 this.actions.service.reloadAll.listen(this._reloadAll.bind(this));
@@ -338,6 +339,10 @@ export default class ServicesStore extends Store {
338 this.filterNeedle = null; 339 this.filterNeedle = null;
339 } 340 }
340 341
342 @action _resetStatus() {
343 this.actionStatus = [];
344 }
345
341 @action _reload({ serviceId }) { 346 @action _reload({ serviceId }) {
342 const service = this.one(serviceId); 347 const service = this.one(serviceId);
343 service.resetMessageCount(); 348 service.resetMessageCount();