feat: add webview listener for index progress to load submenu items
This commit is contained in:
parent
96f0cfdd01
commit
ea52d13855
1 changed files with 10 additions and 0 deletions
|
|
@ -356,6 +356,16 @@ export const SubmenuContextProvidersProvider = ({
|
|||
[loadSubmenuItems],
|
||||
);
|
||||
|
||||
useWebviewListener(
|
||||
"indexProgress",
|
||||
async (data) => {
|
||||
if (data.status === "done") {
|
||||
loadSubmenuItems("dependsOnIndexing")
|
||||
}
|
||||
},
|
||||
[loadSubmenuItems],
|
||||
);
|
||||
|
||||
// Reload all submenu items on the initial config load
|
||||
useEffect(() => {
|
||||
if (!submenuContextProviders.length) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue