mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-14 12:23:43 +00:00
Merge branch 'main' into feat/ffi
# Conflicts: # pkg/download/extension.go
This commit is contained in:
commit
0a4d74a513
8 files changed
+108
-44
No files matched your search
@@ -8,9 +8,16 @@ void showErrorMessage(msg) {
|
||||
Get.snackbar(title, msg.msg!);
|
||||
return;
|
||||
}
|
||||
if (msg is Exception && (msg as dynamic).message is Result) {
|
||||
Get.snackbar(title, ((msg as dynamic).message as Result).msg!);
|
||||
return;
|
||||
if (msg is Exception) {
|
||||
final message = (msg as dynamic).message;
|
||||
if (message is Result) {
|
||||
Get.snackbar(title, ((msg as dynamic).message as Result).msg!);
|
||||
return;
|
||||
}
|
||||
if (message is String) {
|
||||
Get.snackbar(title, message);
|
||||
return;
|
||||
}
|
||||
}
|
||||
Get.snackbar(title, msg.toString());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user