mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
Add EnableRotation to SignalSettingsUpdated trigger list
The `EnableRotation` property was added to the list of feature visibility properties that trigger the `SignalSettingsUpdated()` method when their values change. This ensures that the `PowerDisplay` UI refreshes appropriately when the `EnableRotation` property is updated. The change aligns with the existing behavior for other properties like `EnableContrast`, `EnableVolume`, `EnableInputSource`, and `IsHidden`. This update addresses the lack of UI refresh for `EnableRotation` due to `set_config()` not signaling the `SettingsUpdatedEvent`.
This commit is contained in:
@@ -360,6 +360,7 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
|
|||||||
if (e.PropertyName == nameof(MonitorInfo.EnableContrast) ||
|
if (e.PropertyName == nameof(MonitorInfo.EnableContrast) ||
|
||||||
e.PropertyName == nameof(MonitorInfo.EnableVolume) ||
|
e.PropertyName == nameof(MonitorInfo.EnableVolume) ||
|
||||||
e.PropertyName == nameof(MonitorInfo.EnableInputSource) ||
|
e.PropertyName == nameof(MonitorInfo.EnableInputSource) ||
|
||||||
|
e.PropertyName == nameof(MonitorInfo.EnableRotation) ||
|
||||||
e.PropertyName == nameof(MonitorInfo.IsHidden))
|
e.PropertyName == nameof(MonitorInfo.IsHidden))
|
||||||
{
|
{
|
||||||
SignalSettingsUpdated();
|
SignalSettingsUpdated();
|
||||||
|
|||||||
Reference in New Issue
Block a user