Skip to content

基于自定义规则的番剧采集APP,支持流媒体在线观看,支持弹幕,支持实时超分辨率。

fix(ui): prevent batch rule update toast from disappearing (#2470)

walker1211030645a918d1
diff --git a/lib/pages/plugin_editor/plugin_update_actions.dart b/lib/pages/plugin_editor/plugin_update_actions.dart
index d3dcf387..08e0ede5 100644
--- a/lib/pages/plugin_editor/plugin_update_actions.dart
+++ b/lib/pages/plugin_editor/plugin_update_actions.dart
@@ -5,15 +5,13 @@ Future<void> updateAllPluginsWithFeedback(
PluginsController controller, {
required bool ensureCatalog,
}) async {
- KazumiDialog.showLoading(msg: '更新中');
+ KazumiDialog.showToast(message: '更新中');
try {
final result = await controller.tryUpdateAllPlugin(
ensureCatalog: ensureCatalog,
);
- KazumiDialog.dismiss();
KazumiDialog.showToast(message: _batchUpdateMessage(result));
} catch (_) {
- KazumiDialog.dismiss();
KazumiDialog.showToast(message: '更新规则失败');
}
}