fix(plugins): ignore stale plugin panel close notices

The overlay's modal-closed notice now carries the panel id, and the
runtime only finishes the active panel when the ids match. A late notice
for a replaced panel no longer aborts the newer one.
This commit is contained in:
sudacode committed 2026-10-26 22:08:35 -07:00
1 parent 0f53b8beca
commit 7b92511f23
9 files changed
+46 -21

No files matched your search

+2
View File
@@ -625,6 +625,8 @@ export interface ElectronAPI {
| 'character-dictionary'
| 'changelog'
| 'plugin-panel',
/** Which instance closed, for modals that swap content in place (the plugin panel's id). */
instanceId?: number,
) => void;
notifyOverlayModalOpened: (
modal: