This commit is contained in:
xkeyC 2023-10-12 21:31:50 +08:00
parent 962b294c0f
commit 46adcf8bdb

View File

@ -309,7 +309,7 @@ class LocalizationUIModel extends BaseUIModel {
final userCfgFile = File("$scInstallPath\\USER.cfg");
if (await userCfgFile.exists()) {
final cfgString = await userCfgFile.readAsString();
if (cfgString.contains("g_language=") &&
if (cfgString.contains("g_language") &&
!cfgString.contains("g_language=$selectedLanguage")) {
final ok = await showConfirmDialogs(
context!,
@ -321,7 +321,7 @@ class LocalizationUIModel extends BaseUIModel {
if (ok == true) {
var finalString = "";
for (var item in cfgString.split("\n")) {
if (!item.trim().startsWith("g_language=")) {
if (!item.trim().startsWith("g_language")) {
finalString = "$finalString$item\n";
}
}