mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 19:57:57 +01:00
fix settings ui issue
This commit is contained in:
@@ -327,9 +327,12 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
||||
// Sort by VCP value for consistent ordering
|
||||
presetList = presetList.OrderBy(p => p.VcpValue).ToList();
|
||||
|
||||
// Create new collection and assign it - this triggers property setter
|
||||
// which will call UpdateSelectedColorPresetFromTemperature() to sync the selection
|
||||
// Create new collection and assign it
|
||||
monitor.AvailableColorPresets = new ObservableCollection<MonitorInfo.ColorPresetItem>(presetList);
|
||||
|
||||
// Refresh ColorTemperature binding to force ComboBox to re-evaluate SelectedValue
|
||||
// and match it against the newly populated AvailableColorPresets
|
||||
monitor.RefreshColorTemperatureBinding();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user