|
|
@ -82,8 +82,11 @@ function HomeTabFile({ plugin }: HomeTabFileProps) { |
|
|
|
deleteSavedWorkspace(deletedName) |
|
|
|
deleteSavedWorkspace(deletedName) |
|
|
|
}) |
|
|
|
}) |
|
|
|
return () => { |
|
|
|
return () => { |
|
|
|
plugin.off('filePanel', 'setWorkspace') |
|
|
|
try { |
|
|
|
plugin.off('filePanel', 'workspaceDeleted') |
|
|
|
plugin.off('filePanel', 'setWorkspace') |
|
|
|
|
|
|
|
plugin.off('filePanel', 'workspaceDeleted') |
|
|
|
|
|
|
|
} catch (e) { |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
}, [plugin]) |
|
|
|
}, [plugin]) |
|
|
|
|
|
|
|
|
|
|
|