Skip to content

Guard against updates after destroy#577

Open
Pappmann wants to merge 1 commit intoTudmotu:masterfrom
shell-extensions:main
Open

Guard against updates after destroy#577
Pappmann wants to merge 1 commit intoTudmotu:masterfrom
shell-extensions:main

Conversation

@Pappmann
Copy link

Summary

Prevent async callbacks and UI updates from touching destroyed widgets after the extension is disabled, which can trigger
“object disposed” errors.

Changes

  • Track a _destroyed flag on ClipboardIndicator.
  • Early‑return in _buildMenu, _refreshIndicator, and menu helper methods if destroyed.
  • Skip post‑build initialization when teardown already happened.

Testing

Manual: reloaded the extension and exercised clipboard history and menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant