From 97df0fb5ed49e37d1c8e0e62057bb72ba5c9eb6a Mon Sep 17 00:00:00 2001
From: chunhualin1 <chunhualin1@lenovo.com>
Date: 星期三, 12 八月 2026 17:24:49 +0800
Subject: [PATCH] 优化透明样式
---
src/Moli.Desktop.Tests/Layout/LayoutManagerTests.cs | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/src/Moli.Desktop.Tests/Layout/LayoutManagerTests.cs b/src/Moli.Desktop.Tests/Layout/LayoutManagerTests.cs
index 7df03da..50d0eb4 100644
--- a/src/Moli.Desktop.Tests/Layout/LayoutManagerTests.cs
+++ b/src/Moli.Desktop.Tests/Layout/LayoutManagerTests.cs
@@ -47,6 +47,19 @@
}
[Fact]
+ public async Task Update_AllowsUnlockingLockedWidget()
+ {
+ var (manager, monitor, _) = await CreateLoadedManagerAsync();
+ var plugin = CreatePlugin(locked: true);
+ var layout = manager.CreateFromPlugin(plugin, monitor.Id);
+
+ var result = manager.Update(layout.InstanceId, new WidgetLayoutPatch { IsLocked = false });
+
+ Assert.True(result.Succeeded);
+ Assert.False(result.Value?.IsLocked);
+ }
+
+ [Fact]
public async Task ReconcileMonitors_MovesMissingSecondaryMonitorToPrimary()
{
var (manager, _, diagnostics) = await CreateLoadedManagerAsync();
--
Gitblit v1.9.1