mirror of
https://github.com/aclist/dztui.git
synced 2026-11-11 04:20:39 +01:00
fix: wipe cache when removing row
This commit is contained in:
1 parent
ed508c6764
commit
61735d20cf
6 files changed
+20
-13
No files matched your search
@@ -51,6 +51,7 @@ class ProxyModelManager:
|
||||
for record in self.control_model:
|
||||
if row[7] == record[7] and row[8] == record[8]:
|
||||
self.control_model.remove(record)
|
||||
self.wipe_cache()
|
||||
self.filter(FilterMode.INITIAL, skip_cache=True)
|
||||
|
||||
def update_playercount(self, playercount: "NewPlayerCount") -> None:
|
||||
@@ -214,6 +215,7 @@ class ProxyModelManager:
|
||||
) -> None:
|
||||
self.filter_cache[filters] = (model, rows)
|
||||
|
||||
@deprecated("legacy logic")
|
||||
def resync_model(self, addr: str, qport: int) -> None:
|
||||
"""
|
||||
Handle in-situ updates to model during
|
||||
|
||||
Reference in new issue
Block a user