diff --git a/src/Starward/Pages/MainPage.xaml b/src/Starward/Pages/MainPage.xaml index eb7b81714..8c40b79ab 100644 --- a/src/Starward/Pages/MainPage.xaml +++ b/src/Starward/Pages/MainPage.xaml @@ -69,13 +69,13 @@ - - + --> @@ -355,7 +355,7 @@ - + --> @@ -391,7 +391,7 @@ Height="40" Click="Button_Navigation_Click" Style="{ThemeResource DateTimePickerFlyoutButtonStyle}" - Tag="4"> + Tag="3"> + Text="3" /> @@ -408,7 +408,7 @@ x:Load="{x:Bind NavigationViewItem_GachaLog.Visibility, Converter={StaticResource VisibilityToBoolConverter}}" Click="Button_Navigation_Click" Style="{ThemeResource DateTimePickerFlyoutButtonStyle}" - Tag="5"> + Tag="4"> + Text="4" /> @@ -427,7 +427,7 @@ x:Load="{x:Bind NavigationViewItem_HoyolabToolbox.Visibility, Converter={StaticResource VisibilityToBoolConverter}}" Click="Button_Navigation_Click" Style="{ThemeResource DateTimePickerFlyoutButtonStyle}" - Tag="6"> + Tag="5"> + Text="5" /> @@ -446,7 +446,7 @@ x:Load="{x:Bind NavigationViewItem_SelfQuery.Visibility, Converter={StaticResource VisibilityToBoolConverter}}" Click="Button_Navigation_Click" Style="{ThemeResource DateTimePickerFlyoutButtonStyle}" - Tag="7"> + Tag="6"> + Text="6" /> diff --git a/src/Starward/Pages/MainPage.xaml.cs b/src/Starward/Pages/MainPage.xaml.cs index 64be9617a..8f1488d3a 100644 --- a/src/Starward/Pages/MainPage.xaml.cs +++ b/src/Starward/Pages/MainPage.xaml.cs @@ -968,32 +968,32 @@ private void ShortcutNavigate(int num) NavigationViewItem_Launcher.IsSelected = true; NavigateTo(typeof(LauncherPage)); } + //if (num == 2) + //{ + // NavigationViewItem_GameAnnounce.IsSelected = true; + // NavigateTo(typeof(GameNoticesPage)); + //} if (num == 2) - { - NavigationViewItem_GameAnnounce.IsSelected = true; - NavigateTo(typeof(GameNoticesPage)); - } - if (num == 3) { NavigationViewItem_GameSetting.IsSelected = true; NavigateTo(typeof(GameSettingPage)); } - if (num == 4) + if (num == 3) { NavigationViewItem_Screenshot.IsSelected = true; NavigateTo(typeof(ScreenshotPage)); } - if (num == 5 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd) + if (num == 4 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd) { NavigationViewItem_GachaLog.IsSelected = true; NavigateTo(typeof(GachaLogPage)); } - if (num == 6 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd) + if (num == 5 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd) { NavigationViewItem_HoyolabToolbox.IsSelected = true; NavigateTo(typeof(HoyolabToolboxPage)); } - if (num == 7 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd) + if (num == 6 && CurrentGameBiz.ToGame() != GameBiz.Honkai3rd) { NavigationViewItem_SelfQuery.IsSelected = true; NavigateTo(typeof(SelfQueryPage));