Code clean

This commit is contained in:
2dust
2026-08-22 17:32:26 +08:00
parent 0436081436
commit af0eb9ed14
8 changed files with 5 additions and 8 deletions
-1
View File
@@ -1,4 +1,3 @@
using System.Collections.Specialized;
using System.Security.Principal; using System.Security.Principal;
using CliWrap; using CliWrap;
using CliWrap.Buffered; using CliWrap.Buffered;
+1
View File
@@ -5,6 +5,7 @@ public sealed class EventChannel<T>
private readonly Signal<T> _signal = new(); private readonly Signal<T> _signal = new();
private readonly Lock _gate = new(); private readonly Lock _gate = new();
private readonly IObservable<T> _observable; private readonly IObservable<T> _observable;
public EventChannel() public EventChannel()
{ {
_observable = _signal.Synchronize(_gate); _observable = _signal.Synchronize(_gate);
-2
View File
@@ -1,5 +1,3 @@
using System.Collections.Specialized;
namespace ServiceLib.Handler.Fmt; namespace ServiceLib.Handler.Fmt;
public class BaseFmt public class BaseFmt
@@ -9,6 +9,7 @@ public partial class SubEditViewModel : MyReactiveObject, ICloseable
[Reactive] [Reactive]
public partial string CustomCoreType { get; set; } public partial string CustomCoreType { get; set; }
[Reactive] [Reactive]
public partial string PrevProfile { get; set; } public partial string PrevProfile { get; set; }
@@ -1,4 +1,3 @@
using ServiceLib.Models.Entities;
using System.Diagnostics; using System.Diagnostics;
using v2rayN.Desktop.Manager; using v2rayN.Desktop.Manager;
using v2rayN.Desktop.ViewModels; using v2rayN.Desktop.ViewModels;
@@ -1,5 +1,4 @@
using v2rayN.Desktop.Base; using v2rayN.Desktop.Base;
using v2rayN.Desktop.Common;
namespace v2rayN.Desktop.Views; namespace v2rayN.Desktop.Views;