From eab164c25657b2737706562b538119a8d10f97f6 Mon Sep 17 00:00:00 2001 From: "Foivos S. Zakkak" Date: Sat, 18 Oct 2014 08:35:43 +0300 Subject: [PATCH] Move nWorkspacesChanged above call --- .../extension.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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();