diff --git a/EnvyUpdate/MainWindow.xaml b/EnvyUpdate/MainWindow.xaml index f12d454..c5a545b 100644 --- a/EnvyUpdate/MainWindow.xaml +++ b/EnvyUpdate/MainWindow.xaml @@ -11,7 +11,7 @@ ExtendsContentIntoTitleBar="True" WindowBackdropType="Mica" - Title="EnvyUpdate" MinHeight="500" Height="500" MinWidth="600" Width="600" Icon="icon.ico" StateChanged="Window_StateChanged" Closing="Window_Closing" ResizeMode="CanMinimize" Activated="UiWindow_Activated" WindowStyle="None"> + Title="EnvyUpdate" MinHeight="500" Height="500" MinWidth="600" Width="600" Icon="icon.ico" StateChanged="Window_StateChanged" Closing="Window_Closing" ResizeMode="CanMinimize" WindowStyle="None"> diff --git a/EnvyUpdate/MainWindow.xaml.cs b/EnvyUpdate/MainWindow.xaml.cs index 7f95351..5d01b89 100644 --- a/EnvyUpdate/MainWindow.xaml.cs +++ b/EnvyUpdate/MainWindow.xaml.cs @@ -106,20 +106,6 @@ namespace EnvyUpdate Application.Current.Shutdown(); } - private void UiWindow_Activated(object sender, EventArgs e) - { - // This is a workaround for a bug (?) in the UI library, which causes the nav to not load the first item on startup. - // Without this, the nav attempts to navigate before the window is shown, which doesn't work. - try - { - var test = RootNavigation.Current.PageType; - } - catch (NullReferenceException) - { - RootNavigation.Navigate(0); - } - } - private void AdjustTheme(object sender = null, UserPreferenceChangedEventArgs e = null) { if (Util.IsDarkTheme()) diff --git a/EnvyUpdate/SettingsPage.xaml b/EnvyUpdate/SettingsPage.xaml index e04aa0a..527bd97 100644 --- a/EnvyUpdate/SettingsPage.xaml +++ b/EnvyUpdate/SettingsPage.xaml @@ -55,7 +55,7 @@ - +