FIX: Loading requests from history doesn't immediately mark the tab as modified
This commit is contained in:
parent
fcad852800
commit
907ce7b753
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user