From bc134b344bcc0e2aeddaa629233423099fac6a7a Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Mon, 11 Aug 2025 18:43:08 -0500 Subject: [PATCH] CmdPal: Make sure to include apps in the ctor (#41081) A regression from #40132 We need to set the value of `_includeApps` in the `MainListPage` ctor. Without it, if the user doesn't have any extensions installed, the value is never updated. --- .../Microsoft.CmdPal.UI.ViewModels/Commands/MainListPage.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Commands/MainListPage.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Commands/MainListPage.cs index 71c0a4e810..f877afa9c5 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Commands/MainListPage.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI.ViewModels/Commands/MainListPage.cs @@ -60,6 +60,7 @@ public partial class MainListPage : DynamicListPage, var settings = _serviceProvider.GetService()!; settings.SettingsChanged += SettingsChangedHandler; HotReloadSettings(settings); + _includeApps = _tlcManager.IsProviderActive(AllAppsCommandProvider.WellKnownId); IsLoading = true; }