Skip to content

Commit

Permalink
修复错误显示版本信息图标
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisYounger committed Sep 4, 2024
1 parent f0bc1f2 commit 1bca3a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -388,13 +388,13 @@ private void ShowMod(string modname)
}
else
ImageMOD.Source = ImageResources.NewSafeBitmapImage(@"pack://application:,,,/Res/TopLogo2019.PNG");
runMODGameVerInfo.Visibility = Visibility.Collapsed;
if (mod.GameVer / 100 != mw.version / 100)
if (mod.GameVer < mw.version)
{
if (mod.GameVer / 1000 == mw.version / 1000)
{
runMODGameVer.Text += " (兼容)".Translate();
runMODGameVerInfo.Visibility = Visibility.Collapsed;
}
else
{
Expand All @@ -416,7 +416,6 @@ private void ShowMod(string modname)
if (mod.GameVer / 1000 == mw.version / 1000)
{
runMODGameVer.Text += " (兼容)".Translate();
runMODGameVerInfo.Visibility = Visibility.Collapsed;
runMODGameVer.Foreground = Function.ResourcesBrush(Function.BrushType.PrimaryText);
}
else
Expand Down

0 comments on commit 1bca3a5

Please sign in to comment.