private async void LogoutClick(object sender, RoutedEventArgs e)
        {
            var loadingWindow = new Windows.loading(true);

            loadingWindow.Show();
            this.IsEnabled = false;
            await Account.Logout();

            loadingWindow.Close();
        }
        private async void Window_Initialized(object sender, EventArgs e)
        {
            this.Visibility = Visibility.Hidden;
            var loadingWin = new Windows.loading();

            loadingWin.Show();

            Utils.setURLProtocol();

            await Utils.fixInstallingGames();

            await UpdateUserData();

            Utils.startPipeServer();

            _mainFrame.Navigate(libraryP);
            await Account.HandleStartupArgs(App.startupArgs);

            loadingWin.Close();



            this.Visibility = Visibility.Visible;
        }