Fix duplicated value change

This commit is contained in:
Jack251970 2025-05-15 19:51:30 +08:00
parent 1a67c8906b
commit 5b17fad67c
2 changed files with 6 additions and 0 deletions

View file

@ -263,6 +263,7 @@ public partial class SettingWindow
nameof(About) => typeof(SettingsPaneAbout),
_ => typeof(SettingsPaneGeneral)
};
_viewModel.SetPageType(pageType);
ContentFrame.Navigate(pageType);
}
}

View file

@ -14,6 +14,11 @@ public partial class SettingWindowViewModel : BaseModel
_settings = settings;
}
public void SetPageType(Type pageType)
{
_pageType = pageType;
}
private Type _pageType = typeof(SettingsPaneGeneral);
public Type PageType
{