[Task]: Screenshot preview window lifetime handling is fragile #7
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The screenshot preview window is stored as a single reference:
Why this is a problem
The preview widget has no parent and only one stored reference.
If another screenshot is taken before the previous preview window is closed, the old reference is overwritten. That creates a risk that the previous window object can be garbage-collected while still visible.
Fix approach
Use a safer window-lifetime strategy, for example:
Status
Still open.
Not fixed in the current v0.2 working copy.
Screenshot preview window lifetime handling is fragileto [Task]: Screenshot preview window lifetime handling is fragile