aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/SettingsStore.js
diff options
context:
space:
mode:
authorLibravatar Vijay A <avijayr@protonmail.com>2021-08-21 20:12:28 +0530
committerLibravatar Vijay A <avijayr@protonmail.com>2021-08-21 21:55:28 +0530
commit4f584111d57e4d91ce189cf2f0b5c2e3e2b8dc4d (patch)
tree9f8b016d71136e87bcf532f60ce4acfa03f6cedd /src/stores/SettingsStore.js
parentIncorrect position while adding a new service when there were pre-existing se... (diff)
downloadferdium-app-4f584111d57e4d91ce189cf2f0b5c2e3e2b8dc4d.tar.gz
ferdium-app-4f584111d57e4d91ce189cf2f0b5c2e3e2b8dc4d.tar.zst
ferdium-app-4f584111d57e4d91ce189cf2f0b5c2e3e2b8dc4d.zip
style: consistent syntax style [skip ci]
Diffstat (limited to 'src/stores/SettingsStore.js')
-rw-r--r--src/stores/SettingsStore.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/stores/SettingsStore.js b/src/stores/SettingsStore.js
index cd627c2b8..f551e1e49 100644
--- a/src/stores/SettingsStore.js
+++ b/src/stores/SettingsStore.js
@@ -40,7 +40,9 @@ export default class SettingsStore extends Store {
40 await this._migrate(); 40 await this._migrate();
41 41
42 reaction( 42 reaction(
43 () => this.all.app.autohideMenuBar, 43 () => (
44 this.all.app.autohideMenuBar
45 ),
44 () => { 46 () => {
45 const currentWindow = getCurrentWindow(); 47 const currentWindow = getCurrentWindow();
46 currentWindow.setMenuBarVisibility(!this.all.app.autohideMenuBar); 48 currentWindow.setMenuBarVisibility(!this.all.app.autohideMenuBar);
@@ -49,15 +51,15 @@ export default class SettingsStore extends Store {
49 ); 51 );
50 52
51 reaction( 53 reaction(
52 () => this.all.app.server, 54 () => (
55 this.all.app.server
56 ),
53 (server) => { 57 (server) => {
54 if (server === LOCAL_SERVER) { 58 if (server === LOCAL_SERVER) {
55 ipcRenderer.send('startLocalServer'); 59 ipcRenderer.send('startLocalServer');
56 } 60 }
57 }, 61 },
58 { 62 { fireImmediately: true },
59 fireImmediately: true,
60 },
61 ); 63 );
62 64
63 // Inactivity lock timer 65 // Inactivity lock timer