mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复缺失图片时无法显示图片的bug
This commit is contained in:
parent
cbb09d461c
commit
e4206e5a0f
VPet-Simulator.Windows.Interface
VPet-Simulator.Windows
@ -158,7 +158,7 @@ namespace VPet_Simulator.Windows.Interface
|
||||
string source = FindSource(imagename);
|
||||
if (source == null)
|
||||
{
|
||||
return NewSafeBitmapImage(source);
|
||||
return NewSafeBitmapImage(FindImageUri(superior));
|
||||
}
|
||||
return NewSafeBitmapImage(source);
|
||||
}
|
||||
|
@ -238,7 +238,6 @@ namespace VPet_Simulator.Windows
|
||||
System.Diagnostics.Process.Start(System.Reflection.Assembly.GetExecutingAssembly().Location);
|
||||
else
|
||||
{
|
||||
App.MainWindows.Remove(this);
|
||||
new MainWindow(PrefixSave).Show();
|
||||
}
|
||||
Exit();
|
||||
|
@ -119,6 +119,8 @@ namespace VPet_Simulator.Windows
|
||||
|
||||
if (mw.Set.Diagnosis)
|
||||
RBDiagnosisYES.IsChecked = true;
|
||||
else
|
||||
RBDiagnosisNO.IsChecked = true;
|
||||
|
||||
List<int> cbDiagnosis = new List<int> { 200, 500, 1000, 2000, 5000, 10000, 20000 };
|
||||
int ds = cbDiagnosis.IndexOf(mw.Set.DiagnosisInterval);
|
||||
|
Loading…
x
Reference in New Issue
Block a user