diff options
Diffstat (limited to 'src/features/workspaces/store.js')
-rw-r--r-- | src/features/workspaces/store.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index 1f3d57c24..d2ccfeccf 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -15,7 +15,8 @@ import { createActionBindings } from '../utils/ActionBinding'; | |||
15 | 15 | ||
16 | import { KEEP_WS_LOADED_USID } from '../../config'; | 16 | import { KEEP_WS_LOADED_USID } from '../../config'; |
17 | 17 | ||
18 | const debug = require('debug')('Ferdium:feature:workspaces:store'); | 18 | // TODO: Go back to 'debug' from 'console.log' when https://github.com/electron/electron/issues/31689 is fixed |
19 | // const debug = require('debug')('Ferdium:feature:workspaces:store'); | ||
19 | 20 | ||
20 | export default class WorkspacesStore extends FeatureStore { | 21 | export default class WorkspacesStore extends FeatureStore { |
21 | @observable isFeatureActive = false; | 22 | @observable isFeatureActive = false; |
@@ -69,7 +70,7 @@ export default class WorkspacesStore extends FeatureStore { | |||
69 | // ========== PUBLIC API ========= // | 70 | // ========== PUBLIC API ========= // |
70 | 71 | ||
71 | @action start(stores, actions) { | 72 | @action start(stores, actions) { |
72 | debug('WorkspacesStore::start'); | 73 | console.log('WorkspacesStore::start'); |
73 | this.stores = stores; | 74 | this.stores = stores; |
74 | this.actions = actions; | 75 | this.actions = actions; |
75 | 76 | ||
@@ -115,7 +116,7 @@ export default class WorkspacesStore extends FeatureStore { | |||
115 | 116 | ||
116 | @action stop() { | 117 | @action stop() { |
117 | super.stop(); | 118 | super.stop(); |
118 | debug('WorkspacesStore::stop'); | 119 | console.log('WorkspacesStore::stop'); |
119 | this.reset(); | 120 | this.reset(); |
120 | this.isFeatureActive = false; | 121 | this.isFeatureActive = false; |
121 | } | 122 | } |
@@ -273,7 +274,7 @@ export default class WorkspacesStore extends FeatureStore { | |||
273 | }; | 274 | }; |
274 | 275 | ||
275 | _activateLastUsedWorkspaceReaction = () => { | 276 | _activateLastUsedWorkspaceReaction = () => { |
276 | debug('_activateLastUsedWorkspaceReaction'); | 277 | console.log('_activateLastUsedWorkspaceReaction'); |
277 | if (!this.activeWorkspace && this.userHasWorkspaces) { | 278 | if (!this.activeWorkspace && this.userHasWorkspaces) { |
278 | const { lastActiveWorkspace } = this.settings; | 279 | const { lastActiveWorkspace } = this.settings; |
279 | if (lastActiveWorkspace) { | 280 | if (lastActiveWorkspace) { |