From e9cd4572330d2c8e5bdb786eeaa7136342af8e6a Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Thu, 21 Nov 2024 19:06:01 +0900 Subject: [PATCH] fix: set window context earlier --- dzgui.sh | 2 +- helpers/ui.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dzgui.sh b/dzgui.sh index f13c3d2..b53700e 100755 --- a/dzgui.sh +++ b/dzgui.sh @@ -569,7 +569,7 @@ fetch_helpers_by_sum(){ [[ -f "$config_file" ]] && source "$config_file" declare -A sums sums=( - ["ui.py"]="b58e0d80cb3e1b927e66866a3911a860" + ["ui.py"]="549b0415af9ccad6a882b640615b9a22" ["query_v2.py"]="55d339ba02512ac69de288eb3be41067" ["vdf2json.py"]="2f49f6f5d3af919bebaab2e9c220f397" ["funcs"]="75afe0be7e73af2fb6a7e423b5ac9159" diff --git a/helpers/ui.py b/helpers/ui.py index 114c898..1bc315d 100644 --- a/helpers/ui.py +++ b/helpers/ui.py @@ -1229,13 +1229,13 @@ class TreeView(Gtk.TreeView): def _on_tree_selection_changed(self, selection): # no statusbar queue on quad tables - if self.view == WindowContext.TABLE_MODS or context == "Timestamp": - return grid = self.get_outer_grid() context = self.get_first_col() row_sel = self.get_column_at_index(0) logger.info("Tree selection for context '%s' changed to '%s'" %(context, row_sel)) + if self.view == WindowContext.TABLE_MODS or context == "Timestamp": + return if self.current_proc and self.current_proc.is_alive(): self.current_proc.terminate()