Skip to content

Commit 270ea99

Browse files
committed
prevent action while link plugin is loading
1 parent 8e86a66 commit 270ea99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/plugins/components/plugins.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ export default function Plugin() {
8080
const request_search_in_plugin = () => {
8181
if (current_tab() === 0 && link_from.id) {
8282
set_is_loading(true);
83+
set_is_working(true);
8384
const plugin_id_list = Object.keys(INSTALLED_PLUGIN_DATA());
8485
Promise.all(
8586
plugin_id_list.map(plugin_id =>
@@ -95,6 +96,7 @@ export default function Plugin() {
9596
})
9697
.finally(() => {
9798
set_is_loading(false);
99+
set_is_working(false);
98100
});
99101
}
100102
}

0 commit comments

Comments
 (0)