Skip to content
This repository has been archived by the owner on Dec 3, 2021. It is now read-only.

Commit

Permalink
Move nWorkspacesChanged above call
Browse files Browse the repository at this point in the history
  • Loading branch information
zakkak committed Oct 18, 2014
1 parent ed2b4de commit eab164c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions [email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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();
Expand Down

0 comments on commit eab164c

Please sign in to comment.