From b54ade01b30778e402f8a7a547c76ed33e74ddf5 Mon Sep 17 00:00:00 2001 From: Mathieu GRENET Date: Wed, 8 May 2024 11:12:58 +0200 Subject: [PATCH] Fix border resistance saved notification --- .../LittleBigMouse.DisplayLayout/Monitors/PhysicalMonitor.cs | 2 +- .../{SizeViewModel.cs => BorderResistanceViewModel.cs} | 0 .../Persistency/PersistencyExtentions.cs | 4 ++-- 3 files changed, 3 insertions(+), 3 deletions(-) rename LittleBigMouse.Plugins/LittleBigMouse.Plugin.Layout.Avalonia/BorderResistancePlugin/{SizeViewModel.cs => BorderResistanceViewModel.cs} (100%) diff --git a/LittleBigMouse.Core/LittleBigMouse.DisplayLayout/Monitors/PhysicalMonitor.cs b/LittleBigMouse.Core/LittleBigMouse.DisplayLayout/Monitors/PhysicalMonitor.cs index 7a00447..0a7286b 100644 --- a/LittleBigMouse.Core/LittleBigMouse.DisplayLayout/Monitors/PhysicalMonitor.cs +++ b/LittleBigMouse.Core/LittleBigMouse.DisplayLayout/Monitors/PhysicalMonitor.cs @@ -123,7 +123,7 @@ public PhysicalMonitor(string id, IMonitorsLayout layout, PhysicalMonitorModel m e => e.DepthProjection, e => e.DepthRatio, e => e.BorderResistance - ); + ); } void ParseDisplaySources(IReadOnlyCollection obj) diff --git a/LittleBigMouse.Plugins/LittleBigMouse.Plugin.Layout.Avalonia/BorderResistancePlugin/SizeViewModel.cs b/LittleBigMouse.Plugins/LittleBigMouse.Plugin.Layout.Avalonia/BorderResistancePlugin/BorderResistanceViewModel.cs similarity index 100% rename from LittleBigMouse.Plugins/LittleBigMouse.Plugin.Layout.Avalonia/BorderResistancePlugin/SizeViewModel.cs rename to LittleBigMouse.Plugins/LittleBigMouse.Plugin.Layout.Avalonia/BorderResistancePlugin/BorderResistanceViewModel.cs diff --git a/LittleBigMouse.Ui/LittleBigMouse.Ui.Avalonia/Persistency/PersistencyExtentions.cs b/LittleBigMouse.Ui/LittleBigMouse.Ui.Avalonia/Persistency/PersistencyExtentions.cs index 9c4b00e..7f510d1 100644 --- a/LittleBigMouse.Ui/LittleBigMouse.Ui.Avalonia/Persistency/PersistencyExtentions.cs +++ b/LittleBigMouse.Ui/LittleBigMouse.Ui.Avalonia/Persistency/PersistencyExtentions.cs @@ -184,13 +184,13 @@ public static PhysicalMonitor Load(this PhysicalMonitor @this) @this.DepthRatio.X = key.GetOrSet("PhysicalRatioX", () => @this.DepthRatio.X); @this.DepthRatio.Y = key.GetOrSet("PhysicalRatioY", () => @this.DepthRatio.Y); + @this.DepthRatio.Saved = true; @this.BorderResistance.Left = key.GetOrSet(@"BorderResistance\Left", ()=> @this.BorderResistance.Left); @this.BorderResistance.Top = key.GetOrSet(@"BorderResistance\Top", ()=> @this.BorderResistance.Top); @this.BorderResistance.Right = key.GetOrSet(@"BorderResistance\Right", ()=> @this.BorderResistance.Right); @this.BorderResistance.Top = key.GetOrSet(@"BorderResistance\Bottom", ()=> @this.BorderResistance.Bottom); - - @this.DepthRatio.Saved = true; + @this.BorderResistance.Saved = true; @this.Saved = true;