FIX: Loading requests from history doesn't immediately mark the tab as modified
This commit is contained in:
parent
f70bf4f36d
commit
094f87dbb9
@ -40,13 +40,16 @@ class TabManager:
|
|||||||
|
|
||||||
# Store original request for change detection
|
# Store original request for change detection
|
||||||
# Make a copy to avoid reference issues
|
# 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(
|
original_request = HttpRequest(
|
||||||
method=request.method,
|
method=request.method,
|
||||||
url=request.url,
|
url=request.url,
|
||||||
headers=request.headers.copy(),
|
headers=request.headers.copy(),
|
||||||
body=request.body,
|
body=request.body,
|
||||||
syntax=request.syntax
|
syntax=request.syntax
|
||||||
) if saved_request_id else None
|
) if has_content else None
|
||||||
|
|
||||||
tab = RequestTab(
|
tab = RequestTab(
|
||||||
id=tab_id,
|
id=tab_id,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user