Skip to content

Commit

Permalink
5.10.2 - avoid duplication of prompt to delete invalid folder
Browse files Browse the repository at this point in the history
  • Loading branch information
RealRaven2000 committed Jul 6, 2022
1 parent af41bad commit 220f482
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions chrome/content/quickfolders-interface.js
Original file line number Diff line number Diff line change
Expand Up @@ -2104,12 +2104,14 @@ QuickFolders.Interface = {
// this.setEventAttribute(button, "oncommand","QuickFolders.Interface.onButtonClick(event.target, event, true);");
button.addEventListener("click",
function(event) {
QI.onButtonClick(event.target, event, true);
event.stopPropagation();
QI.onButtonClick(event.target, event, true);
},
false);
button.addEventListener("command",
function(event) {
// avoid duplication when clicking buttons themselves:
if (event.target.tagName == "toolbarbutton") return;
QI.onButtonClick(event.target, event, true);
},
false);
Expand Down Expand Up @@ -2464,7 +2466,6 @@ QuickFolders.Interface = {
// force select folder on invalid URI - this will suggest to delete the folder.
let uri = button.getAttribute("folderURI");
if (uri) {
debugger;
QuickFolders_MySelectFolder(uri);
}
}
Expand Down

0 comments on commit 220f482

Please sign in to comment.