Skip to content

Commit

Permalink
bugfix: cycling layout breaks layout shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
esjeon committed Mar 1, 2020
1 parent 924f759 commit 2ea7fee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/engine/layoutstore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ class LayoutStoreEntry {
}

public cycleLayout(step: -1 | 1): ILayout {
this.prevKey = this.key;
this.index = (this.index !== null)
? wrapIndex(this.index + step, CONFIG.layouts.length)
: 0
;
this.key = CONFIG.layouts[this.index].classID;
return this.currentLayout;
}

Expand Down

0 comments on commit 2ea7fee

Please sign in to comment.