diff --git a/src/PSLauncher.App/Resources/Theme.xaml b/src/PSLauncher.App/Resources/Theme.xaml index 847e739..ba0f5aa 100644 --- a/src/PSLauncher.App/Resources/Theme.xaml +++ b/src/PSLauncher.App/Resources/Theme.xaml @@ -1,10 +1,11 @@ + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" + xmlns:res="clr-namespace:PSLauncher.App.Resources"> - + @@ -165,13 +166,39 @@ + diff --git a/src/PSLauncher.App/ViewModels/MainViewModel.cs b/src/PSLauncher.App/ViewModels/MainViewModel.cs index d58192b..5582cf2 100644 --- a/src/PSLauncher.App/ViewModels/MainViewModel.cs +++ b/src/PSLauncher.App/ViewModels/MainViewModel.cs @@ -127,6 +127,20 @@ public sealed partial class MainViewModel : ObservableObject _license = _licenseService.GetCached(); RebuildList(); + + // Vérification automatique des MAJ au démarrage (silencieuse et non bloquante) + _ = Task.Run(async () => + { + try + { + await Task.Delay(500); // laisse l'UI se stabiliser + await Application.Current.Dispatcher.InvokeAsync(async () => + { + await CheckForUpdatesAsync(); + }); + } + catch (Exception ex) { _logger.LogWarning(ex, "Auto check at startup failed"); } + }); } ///