diff --git a/Flow.Launcher/SettingWindow.xaml.cs b/Flow.Launcher/SettingWindow.xaml.cs index 14e4343e3..d8444d45d 100644 --- a/Flow.Launcher/SettingWindow.xaml.cs +++ b/Flow.Launcher/SettingWindow.xaml.cs @@ -263,6 +263,7 @@ public partial class SettingWindow nameof(About) => typeof(SettingsPaneAbout), _ => typeof(SettingsPaneGeneral) }; + _viewModel.SetPageType(pageType); ContentFrame.Navigate(pageType); } } diff --git a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs index 9e7eaf6e8..5b130eb6d 100644 --- a/Flow.Launcher/ViewModel/SettingWindowViewModel.cs +++ b/Flow.Launcher/ViewModel/SettingWindowViewModel.cs @@ -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 {