Refresh environment dropdown in open tabs after environments dialog changes

This commit is contained in:
Pavel Baksy 2026-05-12 01:13:05 +02:00
parent f4f33324dd
commit 1a35867871

View File

@ -1048,6 +1048,10 @@ class RosterWindow(Adw.ApplicationWindow):
def on_environments_updated(dlg): def on_environments_updated(dlg):
# Reload projects to reflect changes # Reload projects to reflect changes
self._load_projects() self._load_projects()
# Refresh environment dropdowns in all open tabs for this project
for page, tab_widget in self.page_to_widget.items():
if tab_widget.project_id == project.id:
tab_widget._populate_environment_dropdown()
dialog.connect('environments-updated', on_environments_updated) dialog.connect('environments-updated', on_environments_updated)
dialog.present(self) dialog.present(self)