Refactor UI config access and clean up code

Use ConfigTextManager instance methods for window sizes and grid heights in both desktop clients. Standardize formatting and remove redundant imports and casts across the Web API and tests.
This commit is contained in:
2dust
2026-11-14 18:07:05 +08:00
parent f64c29972d
commit a42642d334
86 changed files with 1236 additions and 521 deletions
+5 -3
View File
@@ -1,7 +1,6 @@
using System.Diagnostics;
using System.Net.Http;
using System.Net.Sockets;
using System.Runtime.InteropServices;
namespace v2rayN.WebAPI.Launcher;
public interface IWebHealthProbe
@@ -312,7 +311,10 @@ public sealed class WebLauncher
processPath,
WebReplacementCommand.GetManagedEntryPoint(processPath, commandLine),
hostArguments);
if (command is null) return null;
if (command is null)
{
return null;
}
try
{