diff options
Diffstat (limited to 'src/features/workspaces/store.js')
-rw-r--r-- | src/features/workspaces/store.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/features/workspaces/store.js b/src/features/workspaces/store.js index 1ad136a13..da1582a77 100644 --- a/src/features/workspaces/store.js +++ b/src/features/workspaces/store.js | |||
@@ -98,6 +98,7 @@ export default class WorkspacesStore extends FeatureStore { | |||
98 | [workspaceActions.update, this._update], | 98 | [workspaceActions.update, this._update], |
99 | [workspaceActions.activate, this._setActiveWorkspace], | 99 | [workspaceActions.activate, this._setActiveWorkspace], |
100 | [workspaceActions.deactivate, this._deactivateActiveWorkspace], | 100 | [workspaceActions.deactivate, this._deactivateActiveWorkspace], |
101 | [workspaceActions.toggleKeepAllWorkspacesLoadedSetting, this._toggleKeepAllWorkspacesLoadedSetting], | ||
101 | ]); | 102 | ]); |
102 | this._allActions = this._freeUserActions.concat(this._premiumUserActions); | 103 | this._allActions = this._freeUserActions.concat(this._premiumUserActions); |
103 | this._registerActions(this._allActions); | 104 | this._registerActions(this._allActions); |
@@ -246,6 +247,10 @@ export default class WorkspacesStore extends FeatureStore { | |||
246 | await updateWorkspaceRequest.execute(activeWorkspace); | 247 | await updateWorkspaceRequest.execute(activeWorkspace); |
247 | }; | 248 | }; |
248 | 249 | ||
250 | _toggleKeepAllWorkspacesLoadedSetting = async () => { | ||
251 | this._updateSettings({ keepAllWorkspacesLoaded: !this.settings.keepAllWorkspacesLoaded }); | ||
252 | }; | ||
253 | |||
249 | // Reactions | 254 | // Reactions |
250 | 255 | ||
251 | _setFeatureEnabledReaction = () => { | 256 | _setFeatureEnabledReaction = () => { |