From 9b5711d3124622b1f1b18500d442c76492da877a Mon Sep 17 00:00:00 2001
From: chunhualin1 <chunhualin1@lenovo.com>
Date: 星期一, 17 八月 2026 16:52:33 +0800
Subject: [PATCH] 优化llm插件及bug修复
---
src/Moli.Desktop/Api/LocalApiModels.cs | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/Moli.Desktop/Api/LocalApiModels.cs b/src/Moli.Desktop/Api/LocalApiModels.cs
index 9ce3aa2..61b76bd 100644
--- a/src/Moli.Desktop/Api/LocalApiModels.cs
+++ b/src/Moli.Desktop/Api/LocalApiModels.cs
@@ -39,6 +39,7 @@
public double? Opacity { get; init; }
public bool? ClickThrough { get; init; }
public double? Scale { get; init; }
+ public DisplayLayer? DisplayLayer { get; init; }
public WidgetLayoutPatch ToPatch() => new()
{
@@ -48,7 +49,8 @@
IsLocked = IsLocked,
Opacity = Opacity,
ClickThrough = ClickThrough,
- Scale = Scale
+ Scale = Scale,
+ DisplayLayer = DisplayLayer
};
}
@@ -128,6 +130,8 @@
public bool IsLocked { get; init; }
public double Opacity { get; init; }
public bool ClickThrough { get; init; }
+ [JsonConverter(typeof(JsonStringEnumConverter<DisplayLayer>))]
+ public DisplayLayer DisplayLayer { get; init; }
public static WidgetResponse From(WidgetRuntimeState state) => new()
{
@@ -138,7 +142,8 @@
IsVisible = state.IsVisible,
IsLocked = state.IsLocked,
Opacity = state.Opacity,
- ClickThrough = state.ClickThrough
+ ClickThrough = state.ClickThrough,
+ DisplayLayer = state.DisplayLayer
};
}
--
Gitblit v1.9.1