Skip to content

Commit 5b17fad

Browse files
committed
Fix duplicated value change
1 parent 1a67c89 commit 5b17fad

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ private void NavigationView_SelectionChanged(NavigationView sender, NavigationVi
263263
nameof(About) => typeof(SettingsPaneAbout),
264264
_ => typeof(SettingsPaneGeneral)
265265
};
266+
_viewModel.SetPageType(pageType);
266267
ContentFrame.Navigate(pageType);
267268
}
268269
}

Flow.Launcher/ViewModel/SettingWindowViewModel.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ public SettingWindowViewModel(Settings settings)
1414
_settings = settings;
1515
}
1616

17+
public void SetPageType(Type pageType)
18+
{
19+
_pageType = pageType;
20+
}
21+
1722
private Type _pageType = typeof(SettingsPaneGeneral);
1823
public Type PageType
1924
{

0 commit comments

Comments
 (0)