From 78be3508634480aaa7362d7a2af4a8d584332c4a Mon Sep 17 00:00:00 2001 From: aclist <92275929+aclist@users.noreply.github.com> Date: Mon, 16 Feb 2026 02:13:48 +0900 Subject: [PATCH] feat: push data into row immediately --- dzgui/model/filtered_model.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dzgui/model/filtered_model.py b/dzgui/model/filtered_model.py index 1dd5013..a618e24 100644 --- a/dzgui/model/filtered_model.py +++ b/dzgui/model/filtered_model.py @@ -122,12 +122,14 @@ class FilteredModelManager: # if row[7] in self.ping_cache: # row[9] = self.ping_cache[row[7]] + # NOTE: this ListStore manipulation must remain local to the thread clone = self.new_model_from_class(ServerColumns) + n_cols = clone.get_n_columns() if len(rows) > 0: - # TODO: considering exposing an option to not sort rows rows = self.sort_rows(rows) - for row in rows: - clone.append(row) + for i, row in enumerate(rows): + clone.insert_with_values(i, tuple(range(0, n_cols)), row) + #clone.append(row) self.set_cache(filters, clone, rows) self.set_model(clone)