FIX: Loading requests from history doesn't immediately mark the tab as modified

This commit is contained in:
Pavel Baksy 2025-12-21 00:18:54 +01:00
parent f70bf4f36d
commit 094f87dbb9

View File

@ -40,13 +40,16 @@ class TabManager:
# Store original request for change detection
# Make a copy to avoid reference issues
# Create original for saved requests or loaded history items (anything with content)
# Only skip for truly blank new requests
has_content = bool(request.url or request.body or request.headers)
original_request = HttpRequest(
method=request.method,
url=request.url,
headers=request.headers.copy(),
body=request.body,
syntax=request.syntax
) if saved_request_id else None
) if has_content else None
tab = RequestTab(
id=tab_id,