Skip to content

Commit

Permalink
Fix #35: recursion error without Hover Editor
Browse files Browse the repository at this point in the history
  • Loading branch information
pjeby committed Mar 16, 2022
1 parent 9dc5b4b commit f1f2633
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
10 changes: 6 additions & 4 deletions main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "quick-explorer",
"name": "Quick Explorer",
"version": "0.1.16",
"version": "0.1.17",
"description": "Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard",
"minAppVersion": "0.13.23",
"isDesktopOnly": true
Expand Down
8 changes: 5 additions & 3 deletions src/FolderMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,11 @@ export class FolderMenu extends PopupMenu implements HoverParent {
get hoverPopover() { return this._popover; }

set hoverPopover(popover) {
if (this._popover && popover !== this._popover) {
this._popover.onHover = false; // Force unpinned Hover Editors to close
this._popover.hide();
const old = this._popover;
if (old && popover !== old) {
this._popover = null;
old.onHover = false; // Force unpinned Hover Editors to close
old.hide();
}
if (popover && !this.canShowPopover()) {
popover.onHover = false; // Force unpinned Hover Editors to close
Expand Down
2 changes: 1 addition & 1 deletion versions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"0.1.16": "0.13.23",
"0.1.17": "0.13.23",
"0.1.9": "0.12.12",
"0.0.5": "0.12.10",
"0.0.1": "0.12.3"
Expand Down

0 comments on commit f1f2633

Please sign in to comment.