mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-10-26 23:35:17 -07:00
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:
9 files changed
+46
-21
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user