Merge pull request #385 from aclist/fix/maps-combo-unloaded
Some checks are pending
Mirror to Codeberg / mirror-to-codeberg (push) Waiting to run

fix: maps combo not updating on unloaded model
This commit is contained in:
aclist 2026-06-23 19:30:36 +09:00 committed by GitHub
commit e692e1d139
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View File

@ -145,6 +145,7 @@ class ConnectionManager:
binary_missing = True
prefs = self.controller.get_prefs()
remote_mods: list[list[str]] = []
if res.is_modded():
try:
remote_mods, missing_mods = self._query_modlist(record)

View File

@ -80,6 +80,7 @@ class FilterManager:
if maps is None:
return
if len(maps) < 1:
self.reinit_map_store()
return
self.reinit_map_store()

View File

@ -395,8 +395,10 @@ class ServerModelManager:
self.first_iteration = False
def _cleanup_on_success(self) -> None:
proxy = self._get_proxy_man().get_proxy_model()
proxy = self.proxy_man.get_proxy_model()
self.tv.set_model(proxy)
if self.preserve_on_fail is True:
self.proxy_man.wipe_cache()
self.emitter.emit("servers_loaded", self.enum)
if self.first_iteration: