File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -356,6 +356,7 @@ public override void OnFrameworkInitializationCompleted()
356356 else
357357 {
358358 _ipcChannel . MessageReceived += TryOpenRepository ;
359+ desktop . Exit += ( _ , _ ) => _ipcChannel . Dispose ( ) ;
359360 TryLaunchAsNormal ( desktop ) ;
360361 }
361362 }
@@ -500,7 +501,6 @@ private void TryLaunchAsNormal(IClassicDesktopStyleApplicationLifetime desktop)
500501
501502 _launcher = new ViewModels . Launcher ( startupRepo ) ;
502503 desktop . MainWindow = new Views . Launcher ( ) { DataContext = _launcher } ;
503- desktop . Exit += ( _ , _ ) => _ipcChannel . Dispose ( ) ;
504504
505505#if ! DISABLE_UPDATE_DETECTION
506506 if ( pref . ShouldCheck4UpdateOnStartup ( ) )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public Models.DiffResult Result()
5858 {
5959 ProcessInlineHighlights ( ) ;
6060 _result . TextDiff . MaxLineNumber = Math . Max ( _newLine , _oldLine ) ;
61- }
61+ }
6262
6363 return _result ;
6464 }
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ private async void StartServer()
7979 try
8080 {
8181 await _server . WaitForConnectionAsync ( _cancellationTokenSource . Token ) ;
82-
82+
8383 if ( ! _cancellationTokenSource . IsCancellationRequested )
8484 {
8585 var line = await reader . ReadToEndAsync ( _cancellationTokenSource . Token ) ;
Original file line number Diff line number Diff line change 1+ using System ;
12using Avalonia . Controls ;
23using Avalonia . Interactivity ;
34using Avalonia . Platform . Storage ;
4- using System ;
55
66namespace SourceGit . Views
77{
You can’t perform that action at this time.
0 commit comments