mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Fix duplicated value change
This commit is contained in:
parent
1a67c8906b
commit
5b17fad67c
2 changed files with 6 additions and 0 deletions
|
|
@ -263,6 +263,7 @@ public partial class SettingWindow
|
|||
nameof(About) => typeof(SettingsPaneAbout),
|
||||
_ => typeof(SettingsPaneGeneral)
|
||||
};
|
||||
_viewModel.SetPageType(pageType);
|
||||
ContentFrame.Navigate(pageType);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue