Skip to content

Commit

Permalink
Merge pull request #263 from meetfranz/feature/mute-service
Browse files Browse the repository at this point in the history
minor improvements & bugfixing
  • Loading branch information
adlk committed Nov 12, 2017
2 parents 48fe63a + 83ccd49 commit 3c54aa3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
8 changes: 6 additions & 2 deletions src/stores/SettingsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,13 @@ 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();
// We need a little hack to wait until everything is patched
setTimeout(() => this._shareSettingsWithMainProcess(), 0);
gaEvent('Settings', 'update');
}
Expand Down
4 changes: 2 additions & 2 deletions src/styles/tabs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3c54aa3

Please sign in to comment.