From 15df4db8f2e8dbbfc59d2ac909ac3f0fb8df9e4b Mon Sep 17 00:00:00 2001 From: Mike Griese Date: Thu, 6 Aug 2026 11:38:09 -0500 Subject: [PATCH] Dock: update the displays list when navigating to dock settings (#49705) I opened the settings when my laptop was portable. I docked my laptop to my displays. I navigated to the dock settings. I **expected**: to see all my displays I _actually_: saw only the laptop display ------ the fix: make sure to update the displays when we navigate to the dock settings page, so that we properly show all of them Closes: nope didn't file this --- .../Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml.cs b/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml.cs index 8ac5d2515c..e7cd45d116 100644 --- a/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml.cs +++ b/src/modules/cmdpal/Microsoft.CmdPal.UI/Settings/DockSettingsPage.xaml.cs @@ -13,6 +13,7 @@ using Microsoft.Extensions.DependencyInjection; using Microsoft.UI.Xaml; using Microsoft.UI.Xaml.Controls; using Microsoft.UI.Xaml.Documents; +using Microsoft.UI.Xaml.Navigation; using Microsoft.Windows.Storage.Pickers; namespace Microsoft.CmdPal.UI.Settings; @@ -40,6 +41,12 @@ public sealed partial class DockSettingsPage : Page InitializeSettings(); } + protected override void OnNavigatedTo(NavigationEventArgs e) + { + base.OnNavigatedTo(e); + ViewModel.PopulateMonitorConfigs(); + } + private void InitializeSettings() { // Initialize UI controls to match current settings