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()
356
356
else
357
357
{
358
358
_ipcChannel . MessageReceived += TryOpenRepository ;
359
+ desktop . Exit += ( _ , _ ) => _ipcChannel . Dispose ( ) ;
359
360
TryLaunchAsNormal ( desktop ) ;
360
361
}
361
362
}
@@ -500,7 +501,6 @@ private void TryLaunchAsNormal(IClassicDesktopStyleApplicationLifetime desktop)
500
501
501
502
_launcher = new ViewModels . Launcher ( startupRepo ) ;
502
503
desktop . MainWindow = new Views . Launcher ( ) { DataContext = _launcher } ;
503
- desktop . Exit += ( _ , _ ) => _ipcChannel . Dispose ( ) ;
504
504
505
505
#if ! DISABLE_UPDATE_DETECTION
506
506
if ( pref . ShouldCheck4UpdateOnStartup ( ) )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ public Models.DiffResult Result()
58
58
{
59
59
ProcessInlineHighlights ( ) ;
60
60
_result . TextDiff . MaxLineNumber = Math . Max ( _newLine , _oldLine ) ;
61
- }
61
+ }
62
62
63
63
return _result ;
64
64
}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ private async void StartServer()
79
79
try
80
80
{
81
81
await _server . WaitForConnectionAsync ( _cancellationTokenSource . Token ) ;
82
-
82
+
83
83
if ( ! _cancellationTokenSource . IsCancellationRequested )
84
84
{
85
85
var line = await reader . ReadToEndAsync ( _cancellationTokenSource . Token ) ;
Original file line number Diff line number Diff line change
1
+ using System ;
1
2
using Avalonia . Controls ;
2
3
using Avalonia . Interactivity ;
3
4
using Avalonia . Platform . Storage ;
4
- using System ;
5
5
6
6
namespace SourceGit . Views
7
7
{
You can’t perform that action at this time.
0 commit comments