mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
[MWB] - refactoring "Common" classes (Part 4) (#37579)
* [MouseWithoutBorders] - moving Common.Event.cs -> Core\Event.cs - #35155 * [MouseWithoutBorders] - moving Common.Service.cs -> Core\Service.cs - #35155 * [MouseWithoutBorders] - moving Common.Launch.cs -> Core\Launch.cs - #35155 * [MouseWithoutBorders] - moving Common.Helper.cs -> Core\Helper.cs - #35155 * [MouseWithoutBorders] - refactoring and fixes for logger unit test - #35155 * [MouseWithoutBorders] - cleaning up changes - #35155 * [MouseWithoutBorders] - re-[Ignore]-ing test - #35155
This commit is contained in:
@@ -36,6 +36,7 @@ using Newtonsoft.Json;
|
||||
using StreamJsonRpc;
|
||||
|
||||
using Logger = MouseWithoutBorders.Core.Logger;
|
||||
using SettingsHelper = Microsoft.PowerToys.Settings.UI.Library.Utilities.Helper;
|
||||
using Thread = MouseWithoutBorders.Core.Thread;
|
||||
|
||||
[module: SuppressMessage("Microsoft.MSInternal", "CA904:DeclareTypesInMicrosoftOrSystemNamespace", Scope = "namespace", Target = "MouseWithoutBorders", Justification = "Dotnet port with style preservation")]
|
||||
@@ -128,7 +129,7 @@ namespace MouseWithoutBorders.Class
|
||||
{
|
||||
if (args.Length > 2)
|
||||
{
|
||||
Helper.UserLocalAppDataPath = args[2].Trim();
|
||||
SettingsHelper.UserLocalAppDataPath = args[2].Trim();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,7 +236,7 @@ namespace MouseWithoutBorders.Class
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
|
||||
Common.Init();
|
||||
Common.WndProcCounter++;
|
||||
Core.Helper.WndProcCounter++;
|
||||
|
||||
var formScreen = new FrmScreen();
|
||||
|
||||
@@ -430,7 +431,7 @@ namespace MouseWithoutBorders.Class
|
||||
Logger.Log(e);
|
||||
}
|
||||
|
||||
Common.StartMouseWithoutBordersService();
|
||||
Service.StartMouseWithoutBordersService();
|
||||
}
|
||||
|
||||
internal static string User { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user