mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-07-15 07:53:07 +08:00
add Party Room Module
This commit is contained in:
@ -52,7 +52,9 @@ class BaseUIModel extends ChangeNotifier {
|
||||
}
|
||||
|
||||
Future<T?> handleError<T>(Future<T> Function() requestFunc,
|
||||
{bool showFullScreenError = false, String? errorOverride}) async {
|
||||
{bool showFullScreenError = false,
|
||||
String? errorOverride,
|
||||
bool noAlert = false}) async {
|
||||
uiErrorMsg = "";
|
||||
if (mounted) notifyListeners();
|
||||
try {
|
||||
@ -72,7 +74,7 @@ class BaseUIModel extends ChangeNotifier {
|
||||
notifyListeners();
|
||||
return null;
|
||||
}
|
||||
showToast(context!, errorOverride ?? errorMsg);
|
||||
if (!noAlert) showToast(context!, errorOverride ?? errorMsg);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user