Skip to content

Commit 4b73f70

Browse files
committed
Fix language selection change not saved
1 parent 6fc3c58 commit 4b73f70

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CollapseLauncher/Classes/Helper/Locale.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ public int LangIndex
7474
{
7575
OnPropertyChanged();
7676
}
77+
78+
if (value < 0 || value >= MetadataList.Count)
79+
{
80+
return;
81+
}
82+
83+
LauncherConfig.SetAndSaveConfigValue("AppLanguage", MetadataList[value].LanguageID);
7784
}
7885
}
7986

0 commit comments

Comments
 (0)