mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 02:04:44 +08:00
fix https://github.com/StarCitizenToolBox/app/issues/27 : unp4k missing runtime
This commit is contained in:
@ -235,10 +235,7 @@ class AdvancedLocalizationUIModel extends _$AdvancedLocalizationUIModel {
|
||||
return iniData;
|
||||
} catch (e) {
|
||||
final errorMessage = e.toString();
|
||||
if (errorMessage
|
||||
.contains("You must install .NET to run this application") ||
|
||||
errorMessage.contains(
|
||||
"You must install or update .NET to run this application")) {
|
||||
if (Unp4kCModel.checkRunTimeError(errorMessage)) {
|
||||
AnalyticsApi.touch("advanced_localization_no_runtime");
|
||||
}
|
||||
state = state.copyWith(
|
||||
|
@ -302,10 +302,7 @@ class UnP4kErrorWidget extends StatelessWidget {
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
if (errorMessage.contains(
|
||||
"You must install .NET to run this application") ||
|
||||
errorMessage.contains(
|
||||
"You must install or update .NET to run this application")) ...[
|
||||
if (Unp4kCModel.checkRunTimeError(errorMessage)) ...[
|
||||
Text(
|
||||
S.current.tools_unp4k_missing_runtime,
|
||||
style: const TextStyle(fontSize: 16),
|
||||
|
Reference in New Issue
Block a user