diff --git a/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs b/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs index 083ca41..3b4cc7a 100644 --- a/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs +++ b/SCTools/SCTool_Redesigned/Windows/MainWindow.xaml.cs @@ -560,14 +560,20 @@ private void SetInstallbtnLabel() var localizationFile = Path.Combine(gameFolder, "data", "Localization", App.Settings.GetOfficialLanauages()[App.Settings.GameLanguage], "global.ini"); var userConfigPath = Path.Combine(gameFolder, "user.cfg"); - if (patch.IsEnabled == PatchLanguageManager.IsEnabled(userConfigPath) && File.Exists(localizationFile)) + var isPatchEnable = PatchLanguageManager.IsEnabled(userConfigPath); + + if (patch.IsEnabled && isPatchEnable && File.Exists(localizationFile)) { installed++; } else { - mismatch++; + if (patch.IsEnabled == isPatchEnable) + { + mismatch++; + } } + } }