code_style: run dotnet format and re-order codes

Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
leo 2025-04-15 16:30:50 +08:00
parent 3cc463d24b
commit 03216fc31e
No known key found for this signature in database
4 changed files with 4 additions and 4 deletions

View file

@ -356,6 +356,7 @@ namespace SourceGit
else else
{ {
_ipcChannel.MessageReceived += TryOpenRepository; _ipcChannel.MessageReceived += TryOpenRepository;
desktop.Exit += (_, _) => _ipcChannel.Dispose();
TryLaunchAsNormal(desktop); TryLaunchAsNormal(desktop);
} }
} }
@ -500,7 +501,6 @@ namespace SourceGit
_launcher = new ViewModels.Launcher(startupRepo); _launcher = new ViewModels.Launcher(startupRepo);
desktop.MainWindow = new Views.Launcher() { DataContext = _launcher }; desktop.MainWindow = new Views.Launcher() { DataContext = _launcher };
desktop.Exit += (_, _) => _ipcChannel.Dispose();
#if !DISABLE_UPDATE_DETECTION #if !DISABLE_UPDATE_DETECTION
if (pref.ShouldCheck4UpdateOnStartup()) if (pref.ShouldCheck4UpdateOnStartup())

View file

@ -58,7 +58,7 @@ namespace SourceGit.Commands
{ {
ProcessInlineHighlights(); ProcessInlineHighlights();
_result.TextDiff.MaxLineNumber = Math.Max(_newLine, _oldLine); _result.TextDiff.MaxLineNumber = Math.Max(_newLine, _oldLine);
} }
return _result; return _result;
} }

View file

@ -79,7 +79,7 @@ namespace SourceGit.Models
try try
{ {
await _server.WaitForConnectionAsync(_cancellationTokenSource.Token); await _server.WaitForConnectionAsync(_cancellationTokenSource.Token);
if (!_cancellationTokenSource.IsCancellationRequested) if (!_cancellationTokenSource.IsCancellationRequested)
{ {
var line = await reader.ReadToEndAsync(_cancellationTokenSource.Token); var line = await reader.ReadToEndAsync(_cancellationTokenSource.Token);

View file

@ -1,7 +1,7 @@
using System;
using Avalonia.Controls; using Avalonia.Controls;
using Avalonia.Interactivity; using Avalonia.Interactivity;
using Avalonia.Platform.Storage; using Avalonia.Platform.Storage;
using System;
namespace SourceGit.Views namespace SourceGit.Views
{ {