From c6447639ffc8b617cd81e05d07a1dfd940bb0fdf Mon Sep 17 00:00:00 2001 From: Yu Leng Date: Thu, 22 Jan 2026 14:35:20 +0800 Subject: [PATCH] Rename IPCMessageAction to IpcMessageAction for consistency Renamed the IPCMessageAction class to IpcMessageAction in the PowerDisplay.Serialization namespace to follow C# naming conventions. Updated all references, including JSON source generation context, to use the new name. --- .github/actions/spell-check/expect.txt | 2 +- .../powerdisplay/PowerDisplay/Serialization/IPCMessageAction.cs | 2 +- .../PowerDisplay/Serialization/JsonSourceGenerationContext.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/actions/spell-check/expect.txt b/.github/actions/spell-check/expect.txt index 832d7db45c..6038e20bbe 100644 --- a/.github/actions/spell-check/expect.txt +++ b/.github/actions/spell-check/expect.txt @@ -340,7 +340,7 @@ CURRENTDIR CURSORINFO cursorpos CURSORSHOWING -CURSORWRAP +cursorwrap customaction CUSTOMACTIONTEST CUSTOMFORMATPLACEHOLDER diff --git a/src/modules/powerdisplay/PowerDisplay/Serialization/IPCMessageAction.cs b/src/modules/powerdisplay/PowerDisplay/Serialization/IPCMessageAction.cs index 724150e287..b929db1b52 100644 --- a/src/modules/powerdisplay/PowerDisplay/Serialization/IPCMessageAction.cs +++ b/src/modules/powerdisplay/PowerDisplay/Serialization/IPCMessageAction.cs @@ -10,7 +10,7 @@ namespace PowerDisplay.Serialization /// IPC message wrapper for parsing action-based messages. /// Used in App.xaml.cs for dynamic IPC command handling. /// - internal sealed class IPCMessageAction + internal sealed class IpcMessageAction { [JsonPropertyName("action")] public string? Action { get; set; } diff --git a/src/modules/powerdisplay/PowerDisplay/Serialization/JsonSourceGenerationContext.cs b/src/modules/powerdisplay/PowerDisplay/Serialization/JsonSourceGenerationContext.cs index db42324768..239d777693 100644 --- a/src/modules/powerdisplay/PowerDisplay/Serialization/JsonSourceGenerationContext.cs +++ b/src/modules/powerdisplay/PowerDisplay/Serialization/JsonSourceGenerationContext.cs @@ -16,7 +16,7 @@ namespace PowerDisplay.Serialization /// Note: MonitorStateFile and MonitorStateEntry are now in PowerDisplay.Lib /// and should be serialized using ProfileSerializationContext from the Lib. /// - [JsonSerializable(typeof(IPCMessageAction))] + [JsonSerializable(typeof(IpcMessageAction))] [JsonSerializable(typeof(PowerDisplaySettings))] [JsonSerializable(typeof(PowerDisplayProfiles))] [JsonSerializable(typeof(PowerDisplayProfile))]