[meld] dirdiff: Fix sensitivity when cancelling existing folder scans (#499)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] dirdiff: Fix sensitivity when cancelling existing folder scans (#499)
- Date: Thu, 15 Oct 2020 21:05:07 +0000 (UTC)
commit 569691f35e389d31314339024e71780288e4976c
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Oct 16 07:01:18 2020 +1000
dirdiff: Fix sensitivity when cancelling existing folder scans (#499)
In situations where we cancel existing folder scan tasks before they're
finished, we incorrectly didn't clear the _scan_in_progress sentinel
variable. This could happen when e.g., toggling a file filter button
before the current scan had completed, and disabled most of our menu
items (because they're correctly disabled while a scan is running).
meld/dirdiff.py | 1 +
1 file changed, 1 insertion(+)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index deee301d..50ed8234 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -738,6 +738,7 @@ class DirDiff(Gtk.VBox, tree.TreeviewCommon, MeldDoc):
self._update_item_state(child)
self.recompute_label()
self.scheduler.remove_all_tasks()
+ self._scan_in_progress = 0
self.recursively_update(Gtk.TreePath.new_first())
def get_comparison(self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]