Skip to content

Commit

Permalink
Fix Status icons not displaying when first changing to sub channels s…
Browse files Browse the repository at this point in the history
…hown
  • Loading branch information
ZockerAxel committed Aug 23, 2024
1 parent 59ff469 commit 70bc2f2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/viewer/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,8 @@ export default class Viewer {
this.#subChannelsShown = shown;

viewerDiv.classList.toggle("show_subchannels", shown);

this.updateViewer();//Update Viewer to make sure status icons are displayed
}

isSubChannelsShown() {
Expand All @@ -435,6 +437,10 @@ export default class Viewer {
}
}

updateViewer() {
this.#currentView?.onViewerUpdate();
}

createTree() {
logger.log({message: "[Viewer] Creating Tree ..."});
viewerDiv.textContent = "";//Clear Viewer
Expand Down

0 comments on commit 70bc2f2

Please sign in to comment.