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