ui: runtime auto-refresh by active subtab

This commit is contained in:
beckline
2026-02-15 22:48:41 +03:00
parent ad994a04b1
commit 86a2f85155

View File

@@ -658,10 +658,18 @@ RU: Применяет policy-rules и проверяет health. При оши
# Keep this quiet: no modal popups.
self.refresh_appmarks_counts()
try:
# Only refresh units list when Apps(runtime) tab is visible.
# Only refresh runtime lists when Apps(runtime) tab is visible.
if int(self.tabs.currentIndex() or 0) == 1:
self.refresh_appmarks_items(quiet=True)
self.refresh_running_scopes(quiet=True)
sub = int(self.apps_tabs.currentIndex() or 0)
# Profiles: keep state flags (SC/MARK/RUN) fresh.
if sub == 0:
self.refresh_app_profiles(quiet=True)
# Marks tab.
if sub == 2:
self.refresh_appmarks_items(quiet=True)
# Units tab.
if sub == 3:
self.refresh_running_scopes(quiet=True)
except Exception:
pass