change: extract the server catalog model into aqomui/catalog.py #181
Loading…
Reference in a new issue
No description provided.
Delete branch "server-catalog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The #83 seam-3 tangle (#125): server_dict/protocol_dict and every operation on them lived inline in the gui — list derivation, filtering, the latency-sorted index, favourites, profile resolution, protocol selection, the import merge, deletion, and the connect-time projection — while the cli recreated several of the same operations by hand and drifted doing it.
Fix
aqomui/catalog.py: a Qt-free ServerCatalog owning both dicts, their persistence (every mutation saves what it changed — the #139 bug class can no longer recur), and all of the operations above, includingconnect_dictabsorbingutils.create_server_dict. The gui keeps only row hiding and widget population; the cli's hand-rolled copies are gone. Per the #126/#173 tangle rule, the catalog takes over the server.json/protocol.json call sites that landed in config.Behavior unified or fixed on the way (each noted in its commit):
set_hop's deleted-server toast calledself.motify— AttributeError inside a Qt slot instead of an error toasttlscryptwas unassigned on the ip-fallback path (NameError)Verification
Closes #125
🤖 Generated with Claude Code