mirror of
https://github.com/Kenshin/simpread.git
synced 2026-02-01 15:41:29 +00:00
Fix import plugins logic bug.
This commit is contained in:
parent
6133b6bc35
commit
b3a73a9d5c
@ -209,12 +209,16 @@ export default class PluginsOpt extends React.Component {
|
||||
return;
|
||||
}
|
||||
count++;
|
||||
count == storage.option.plugins.length && complete();
|
||||
storage.plugins[result.id] = result;
|
||||
storage.Plugins( result => {
|
||||
count == storage.option.plugins.length && new Notify().Render( "本地插件已全部导入完毕。" );
|
||||
}, storage.plugins );
|
||||
});
|
||||
});
|
||||
const complete = () => {
|
||||
storage.Plugins( result => {
|
||||
new Notify().Render( "本地插件已全部导入完毕。" );
|
||||
this.setState({ plugins: Object.values( storage.plugins ) });
|
||||
}, storage.plugins );
|
||||
}
|
||||
}
|
||||
|
||||
onChange( type ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user