Skip to content

Commit

Permalink
Fixes #177: Now clearing the status bar if no named message label was…
Browse files Browse the repository at this point in the history
… specified
  • Loading branch information
eyalroz committed Jul 14, 2023
1 parent 0aa74be commit 5539fda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/chrome/content/removedupes.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ RemoveDupes.MessengerOverlay.beginSearchForDuplicateMessages = function (searchD

if (searchData.folders.size == 0) {
// all top folders were special folders and therefore skipped
RemoveDupes.namedAlert(window, 'not_searching_special_folders');
RemoveDupes.MessengerOverlay.abortDupeSearch(searchData);
RemoveDupes.namedAlert(window, 'not_searching_special_folders');
return;
}

Expand All @@ -110,6 +110,11 @@ RemoveDupes.MessengerOverlay.abortDupeSearch = function (searchData, labelString
window.removeEventListener("keypress", searchData.keyPressEventListener, true);
searchData = null;
window.statusFeedback.stopMeteors();
if (labelStringName) {
RemoveDupes.StatusBar.setNamedStatus(window, labelStringName);
} else {
RemoveDupes.StatusBar.setStatus(window, '');
}
};

// addSearchFolders -
Expand Down

0 comments on commit 5539fda

Please sign in to comment.