From 888b603238bf7076543b6d3aa3b33fe5a64b9e0d Mon Sep 17 00:00:00 2001 From: Elshiekh Ahmed Date: Thu, 9 Apr 2026 15:37:29 -0700 Subject: [PATCH] If not signed in, prompt user to sign in (or automatically signs in if cached) when navigating to the the "Get started" page for "Upload loose files (msixvc2)" --- .../ViewModel/MainPageViewModel.cs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/PackageUploader.UI/ViewModel/MainPageViewModel.cs b/src/PackageUploader.UI/ViewModel/MainPageViewModel.cs index 69a066d3..79dba181 100644 --- a/src/PackageUploader.UI/ViewModel/MainPageViewModel.cs +++ b/src/PackageUploader.UI/ViewModel/MainPageViewModel.cs @@ -205,9 +205,19 @@ public MainPageViewModel( LoadAvailableTenants(); }); - NavigateToMsixvc2Command = new RelayCommand(() => + NavigateToMsixvc2Command = new RelayCommand(async () => { - windowService.NavigateTo(typeof(Msixvc2UploadView)); + if (!IsUserLoggedIn) + { + SigninStarted = true; + await _authenticationService.SignInAsync(); + SigninStarted = false; + } + + if (IsUserLoggedIn) + { + windowService.NavigateTo(typeof(Msixvc2UploadView)); + } }); IsUserLoggedIn = false;