From 452a2dfe7df55280e2989279f57ece630235e55a Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 10 Nov 2017 22:18:13 +0100 Subject: move unread message badge a few pixel --- src/styles/tabs.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/styles/tabs.scss b/src/styles/tabs.scss index 8347de3b4..3ffc53558 100644 --- a/src/styles/tabs.scss +++ b/src/styles/tabs.scss @@ -67,8 +67,8 @@ padding: 0px 5px; font-size: 11px; position: absolute; - right: 5px; - bottom: 5px; + right: 8px; + bottom: 8px; display: flex; justify-content: center; align-items: center; -- cgit v1.2.3-70-g09d2 From f4db3a4d513ae2240abfcd5d81499689275bded7 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 10 Nov 2017 22:58:52 +0100 Subject: fix issue with unnecessary settings request invalidation --- src/stores/SettingsStore.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 331df5c15..7cd7c9114 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js @@ -35,7 +35,10 @@ export default class SettingsStore extends Store { @action async _update({ settings }) { await this.updateSettingsRequest.execute(settings)._promise; - await this.allSettingsRequest.invalidate({ immediately: true }); + this.allSettingsRequest.patch((result) => { + if (!result) return; + Object.assign(result, settings); + }); this._shareSettingsWithMainProcess(); -- cgit v1.2.3-70-g09d2 From c3eced0aee03004af82cd840b0e9e5d65c9557af Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 10 Nov 2017 23:13:46 +0100 Subject: fix issue with share settings with main process --- src/stores/SettingsStore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index 7cd7c9114..c301eaf82 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js @@ -40,7 +40,8 @@ export default class SettingsStore extends Store { Object.assign(result, settings); }); - this._shareSettingsWithMainProcess(); + // We need a little hack to wait until everything is patched + setTimeout(() => this._shareSettingsWithMainProcess(), 0); gaEvent('Settings', 'update'); } @@ -54,6 +55,7 @@ export default class SettingsStore extends Store { // Reactions _shareSettingsWithMainProcess() { + console.log(this.all); ipcRenderer.send('settings', this.all); } } -- cgit v1.2.3-70-g09d2 From 789d9a4fb570b83e9a2ce80d832ef5ab2b79b7a8 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Fri, 10 Nov 2017 23:13:57 +0100 Subject: enable run in background by default --- src/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/config.js b/src/config.js index 1627993f5..10359f426 100644 --- a/src/config.js +++ b/src/config.js @@ -7,7 +7,7 @@ export const GA_ID = 'UA-74126766-6'; export const DEFAULT_APP_SETTINGS = { autoLaunchOnStart: true, autoLaunchInBackground: false, - runInBackground: false, + runInBackground: true, enableSystemTray: true, minimizeToSystemTray: false, showDisabledServices: true, -- cgit v1.2.3-70-g09d2 From 9f0e306d2e9ea2f25d05fc6db130cb47d17d1222 Mon Sep 17 00:00:00 2001 From: Stefan Malzner Date: Sun, 12 Nov 2017 21:58:53 +0100 Subject: remove console logging --- src/stores/SettingsStore.js | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js index c301eaf82..ad3c53ccf 100644 --- a/src/stores/SettingsStore.js +++ b/src/stores/SettingsStore.js @@ -55,7 +55,6 @@ export default class SettingsStore extends Store { // Reactions _shareSettingsWithMainProcess() { - console.log(this.all); ipcRenderer.send('settings', this.all); } } -- cgit v1.2.3-70-g09d2