mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
修复重开导致的空数据
This commit is contained in:
parent
eaf0001929
commit
ed3d95bda5
@ -1187,7 +1187,7 @@ namespace VPet_Simulator.Windows
|
|||||||
{
|
{
|
||||||
if (MessageBoxX.Show("是否重置游戏数据重新开始?\n该操作无法撤回".Translate(), "重新开始".Translate(), MessageBoxButton.YesNo) == MessageBoxResult.Yes)
|
if (MessageBoxX.Show("是否重置游戏数据重新开始?\n该操作无法撤回".Translate(), "重新开始".Translate(), MessageBoxButton.YesNo) == MessageBoxResult.Yes)
|
||||||
{
|
{
|
||||||
mw.Core.Save = new GameSave();
|
mw.Core.Save = new GameSave(mw.Core.Save.Name);
|
||||||
mw.Set.Statistics = new Statistics();
|
mw.Set.Statistics = new Statistics();
|
||||||
CBSaveReLoad.IsEnabled = false;
|
CBSaveReLoad.IsEnabled = false;
|
||||||
BtnSaveReload.IsEnabled = false;
|
BtnSaveReload.IsEnabled = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user