mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 01:53:41 +08:00
fix
This commit is contained in:
parent
962b294c0f
commit
46adcf8bdb
@ -309,7 +309,7 @@ class LocalizationUIModel extends BaseUIModel {
|
|||||||
final userCfgFile = File("$scInstallPath\\USER.cfg");
|
final userCfgFile = File("$scInstallPath\\USER.cfg");
|
||||||
if (await userCfgFile.exists()) {
|
if (await userCfgFile.exists()) {
|
||||||
final cfgString = await userCfgFile.readAsString();
|
final cfgString = await userCfgFile.readAsString();
|
||||||
if (cfgString.contains("g_language=") &&
|
if (cfgString.contains("g_language") &&
|
||||||
!cfgString.contains("g_language=$selectedLanguage")) {
|
!cfgString.contains("g_language=$selectedLanguage")) {
|
||||||
final ok = await showConfirmDialogs(
|
final ok = await showConfirmDialogs(
|
||||||
context!,
|
context!,
|
||||||
@ -321,7 +321,7 @@ class LocalizationUIModel extends BaseUIModel {
|
|||||||
if (ok == true) {
|
if (ok == true) {
|
||||||
var finalString = "";
|
var finalString = "";
|
||||||
for (var item in cfgString.split("\n")) {
|
for (var item in cfgString.split("\n")) {
|
||||||
if (!item.trim().startsWith("g_language=")) {
|
if (!item.trim().startsWith("g_language")) {
|
||||||
finalString = "$finalString$item\n";
|
finalString = "$finalString$item\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user