Skip to content

Commit

Permalink
Fix UI Selection bug
Browse files Browse the repository at this point in the history
Signed-off-by: ChrisGlad <chris.gladman2004@gmail.com>

This code fixes the problem that elements in the Notebookbar will
not be correctly displayed as "selected" after changing the UI
mode.

Change-Id: I4f889f8593029c375a06e17dbf1062bb9b9f5efc
  • Loading branch information
ChrisGlad authored and pedropintosilva committed Aug 8, 2022
1 parent a28b834 commit 6706dd4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions browser/src/control/Control.UIManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,11 @@ L.Control.UIManager = L.Control.extend({
this.setSavedState('CompactMode', uiMode.mode === 'classic');
this.initializeSidebar();
this.insertCustomButtons();

// this code ensures that elements in the notebookbar have their "selected" status
// displayed correctly
this.map.fire('rulerchanged');
this.map.fire('statusbarchanged');
},

// UI modification
Expand Down

0 comments on commit 6706dd4

Please sign in to comment.