diff --git a/workspace-grid@mathematical.coffee.gmail.com/extension.js b/workspace-grid@mathematical.coffee.gmail.com/extension.js index 7fc6544..84b4bf1 100644 --- a/workspace-grid@mathematical.coffee.gmail.com/extension.js +++ b/workspace-grid@mathematical.coffee.gmail.com/extension.js @@ -1356,6 +1356,13 @@ function unexportFunctionsAndConstants() { function init() { } +function nWorkspacesChanged() { + // re-export new rows/cols + exportFunctionsAndConstants(); + // reset the number of workspaces + modifyNumWorkspaces(); +} + let signals = []; function enable() { /// Storage @@ -1380,13 +1387,6 @@ function enable() { signals.push(settings.connect('changed::' + KEY_MAX_HFRACTION_COLLAPSE, refreshThumbnailsBox)); } -function nWorkspacesChanged() { - // re-export new rows/cols - exportFunctionsAndConstants(); - // reset the number of workspaces - modifyNumWorkspaces(); -} - function disable() { unoverrideWorkspaceDisplay(); unoverrideKeybindingsAndPopup();