Save substituted values to history instead of variable templates

This commit is contained in:
vesp 2025-12-30 14:38:25 +01:00
parent 1cccded694
commit 1192038080
2 changed files with 2 additions and 6 deletions

View File

@ -735,7 +735,6 @@ class RequestTabWidget(Gtk.Box):
"""Update visual indicators for undefined variables.""" """Update visual indicators for undefined variables."""
# Detect undefined variables # Detect undefined variables
self.undefined_variables = self._detect_undefined_variables() self.undefined_variables = self._detect_undefined_variables()
print(f"Updating indicators, undefined vars: {self.undefined_variables}")
# Update URL entry # Update URL entry
self._update_url_indicator() self._update_url_indicator()
@ -770,9 +769,6 @@ class RequestTabWidget(Gtk.Box):
# Iterate through all header rows # Iterate through all header rows
child = self.headers_listbox.get_first_child() child = self.headers_listbox.get_first_child()
while child: while child:
# Debug: print child type
print(f"Header child type: {type(child).__name__}")
# HeaderRow might be a child of the ListBox row # HeaderRow might be a child of the ListBox row
header_row = None header_row = None
if isinstance(child, HeaderRow): if isinstance(child, HeaderRow):

View File

@ -447,10 +447,10 @@ class RosterWindow(Adw.ApplicationWindow):
if tab: if tab:
tab.response = response tab.response = response
# Create history entry # Create history entry (save the substituted request with actual values)
entry = HistoryEntry( entry = HistoryEntry(
timestamp=datetime.now().isoformat(), timestamp=datetime.now().isoformat(),
request=request, request=substituted_request,
response=response, response=response,
error=error error=error
) )