ui: runtime auto-refresh by active subtab
This commit is contained in:
@@ -658,9 +658,17 @@ 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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user