remove ab pull error toast, translate group pull error

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-09-24 08:36:53 +08:00
parent 2080e56f87
commit d83d8c18fc
39 changed files with 44 additions and 8 deletions

View File

@@ -105,9 +105,6 @@ class AbModel {
if (!quiet) {
pullError.value =
'${translate('pull_ab_failed_tip')}: ${translate(err.toString())}';
if (gFFI.peerTabModel.currentTab != PeerTabIndex.ab.index) {
BotToast.showText(contentColor: Colors.red, text: pullError.value);
}
}
} finally {
abLoading.value = false;

View File

@@ -133,7 +133,8 @@ class GroupModel {
return true;
} catch (err) {
debugPrint('get accessible users: $err');
groupLoadError.value = err.toString();
groupLoadError.value =
'${translate('pull_group_failed_tip')}: ${translate(err.toString())}';
}
return false;
}
@@ -198,7 +199,8 @@ class GroupModel {
return true;
} catch (err) {
debugPrint('get accessible peers: $err');
groupLoadError.value = err.toString();
groupLoadError.value =
'${translate('pull_group_failed_tip')}: ${translate(err.toString())}';
}
return false;
}