We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c51ccf3 commit c7687abCopy full SHA for c7687ab
src/Files.App/Data/Models/AppModel.cs
@@ -42,11 +42,8 @@ public int TabStripSelectedIndex
42
{
43
if (value >= 0 && value < MainPageViewModel.AppInstances.Count)
44
45
- var rootFrame = (Frame)MainWindow.Instance.Content;
46
- if (rootFrame.Content is MainPage mainView)
47
- {
+ if (MainWindow.Instance.Content is Frame rootFrame && rootFrame.Content is MainPage mainView)
48
mainView.ViewModel.SelectedTabItem = MainPageViewModel.AppInstances[value];
49
- }
50
}
51
52
catch (COMException)
0 commit comments