Skip to content

Commit

Permalink
Add check for split view menu to properly display rearrange mode popup
Browse files Browse the repository at this point in the history
  • Loading branch information
maxthyron committed Nov 15, 2024
1 parent 226e008 commit 361b0e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/browser/base/zen-components/ZenViewSplitter.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,10 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
}

afterRearangeAction() {
document.getElementById("zenSplitViewModifier").hidePopup();
let splitViewMenu = document.getElementById("zenSplitViewModifier");
if (splitViewMenu) {
splitViewMenu.hidePopup();
}
ConfirmationHint.show(document.getElementById("zen-split-views-box"), "zen-split-view-modifier-enabled-toast", {
descriptionId: "zen-split-view-modifier-enabled-toast-description",
showDescription: true,
Expand Down

0 comments on commit 361b0e3

Please sign in to comment.