mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 11:44:59 +00:00
code_style: run dotnet format
and re-order codes
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
3cc463d24b
commit
03216fc31e
4 changed files with 4 additions and 4 deletions
|
@ -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())
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue