Fix variable indicators showing all vars as undefined when opening saved request in new tab

This commit is contained in:
Pavel Baksy 2026-05-12 00:47:08 +02:00
parent fd07c2bc7e
commit 97a3336e4f

View File

@ -372,6 +372,10 @@ class RosterWindow(Adw.ApplicationWindow):
# Populate environment dropdown if project_id is set
if project_id and hasattr(widget, '_populate_environment_dropdown'):
widget._populate_environment_dropdown()
# Re-run indicator update now that project_manager is injected;
# the earlier call in __init__ ran with project_manager=None and
# incorrectly marked all variables as undefined.
widget._update_variable_indicators()
# Connect to send button
widget.send_button.connect("clicked", lambda btn: self._on_send_clicked(widget))