From 37c2882a985d71fc61805a153bb2a390b2aab5c3 Mon Sep 17 00:00:00 2001 From: RisaDev <151885272+RisaDev@users.noreply.github.com> Date: Mon, 11 Mar 2024 01:10:13 +0300 Subject: [PATCH] GetProfileList -> GetList --- CustomizePlus/Api/CustomizePlusIpc.General.cs | 4 ++-- CustomizePlus/Api/CustomizePlusIpc.Profile.cs | 6 +++--- .../UI/Windows/MainWindow/Tabs/Debug/IPCTestTab.cs | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CustomizePlus/Api/CustomizePlusIpc.General.cs b/CustomizePlus/Api/CustomizePlusIpc.General.cs index d8847de..d989f28 100644 --- a/CustomizePlus/Api/CustomizePlusIpc.General.cs +++ b/CustomizePlus/Api/CustomizePlusIpc.General.cs @@ -18,7 +18,7 @@ public partial class CustomizePlusIpc /// When there are non-breaking changes only second number is bumped up. /// In general clients should not try to use IPC if they encounter unexpected Breaking version. /// - [EzIPC($"General.GetApiVersion")] + [EzIPC("General.GetApiVersion")] private (int, int) GetApiVersion() { return _apiVersion; @@ -29,7 +29,7 @@ public partial class CustomizePlusIpc /// This only indicates that no fatal errors occured in Customize+. /// This will still be true if, for example, user turns off Customize+ in its settings. /// - [EzIPC($"General.IsValid")] + [EzIPC("General.IsValid")] private bool IsValid() { return !IPCFailed && diff --git a/CustomizePlus/Api/CustomizePlusIpc.Profile.cs b/CustomizePlus/Api/CustomizePlusIpc.Profile.cs index 98f17a5..120865b 100644 --- a/CustomizePlus/Api/CustomizePlusIpc.Profile.cs +++ b/CustomizePlus/Api/CustomizePlusIpc.Profile.cs @@ -14,7 +14,7 @@ public partial class CustomizePlusIpc /// Retrieve list of all user profiles /// /// - [EzIPC($"Profile.GetProfileList")] + [EzIPC("Profile.GetList")] private IList GetProfileList() { return _profileManager.Profiles @@ -27,7 +27,7 @@ public partial class CustomizePlusIpc /// Enable profile using its Unique ID /// /// - [EzIPC($"Profile.EnableByUniqueId")] + [EzIPC("Profile.EnableByUniqueId")] private void EnableProfileByUniqueId(Guid uniqueId) { _profileManager.SetEnabled(uniqueId, true); @@ -36,7 +36,7 @@ public partial class CustomizePlusIpc /// /// Disable profile using its Unique ID /// - [EzIPC($"Profile.DisableByUniqueId")] + [EzIPC("Profile.DisableByUniqueId")] private void DisableProfileByUniqueId(Guid uniqueId) { _profileManager.SetEnabled(uniqueId, false); diff --git a/CustomizePlus/UI/Windows/MainWindow/Tabs/Debug/IPCTestTab.cs b/CustomizePlus/UI/Windows/MainWindow/Tabs/Debug/IPCTestTab.cs index e1c5318..4f01fe3 100644 --- a/CustomizePlus/UI/Windows/MainWindow/Tabs/Debug/IPCTestTab.cs +++ b/CustomizePlus/UI/Windows/MainWindow/Tabs/Debug/IPCTestTab.cs @@ -35,7 +35,7 @@ public class IPCTestTab //: IDisposable [EzIPC("General.IsValid")] private readonly Func _isValidIpcFunc; - [EzIPC("Profile.GetProfileList")] + [EzIPC("Profile.GetList")] private readonly Func> _getProfileListIpcFunc; [EzIPC("Profile.EnableByUniqueId")]