mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
code_style: run dotnet format
to follow rules defined in .editorconfig
This commit is contained in:
parent
7866a11037
commit
61cead1867
12 changed files with 13 additions and 13 deletions
|
@ -6,4 +6,4 @@ namespace SourceGit
|
||||||
[JsonSerializable(typeof(Models.Version))]
|
[JsonSerializable(typeof(Models.Version))]
|
||||||
[JsonSerializable(typeof(ViewModels.Preference))]
|
[JsonSerializable(typeof(ViewModels.Preference))]
|
||||||
internal partial class JsonCodeGen : JsonSerializerContext { }
|
internal partial class JsonCodeGen : JsonSerializerContext { }
|
||||||
}
|
}
|
|
@ -253,7 +253,7 @@ namespace SourceGit
|
||||||
};
|
};
|
||||||
|
|
||||||
dialog.Show(desktop.MainWindow);
|
dialog.Show(desktop.MainWindow);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -37,4 +37,4 @@ namespace SourceGit.Commands
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -10,4 +10,4 @@ namespace SourceGit.Converters
|
||||||
public static FuncValueConverter<double, double> Decrease =
|
public static FuncValueConverter<double, double> Decrease =
|
||||||
new FuncValueConverter<double, double>(v => v - 1.0);
|
new FuncValueConverter<double, double>(v => v - 1.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -34,4 +34,4 @@ namespace SourceGit.Models
|
||||||
}
|
}
|
||||||
|
|
||||||
public class AlreadyUpToDate { }
|
public class AlreadyUpToDate { }
|
||||||
}
|
}
|
|
@ -35,7 +35,7 @@ namespace SourceGit.Native
|
||||||
if (File.Exists(toolPath)) return toolPath;
|
if (File.Exists(toolPath)) return toolPath;
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string FindFleet()
|
public string FindFleet()
|
||||||
{
|
{
|
||||||
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.local/share/JetBrains/Toolbox/apps/fleet/bin/Fleet";
|
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/.local/share/JetBrains/Toolbox/apps/fleet/bin/Fleet";
|
||||||
|
|
|
@ -33,7 +33,7 @@ namespace SourceGit.Native
|
||||||
return toolPath;
|
return toolPath;
|
||||||
return string.Empty;
|
return string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string FindFleet()
|
public string FindFleet()
|
||||||
{
|
{
|
||||||
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Applications/Fleet.app/Contents/MacOS/Fleet";
|
var toolPath = $"{Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)}/Applications/Fleet.app/Contents/MacOS/Fleet";
|
||||||
|
|
|
@ -449,7 +449,7 @@ namespace SourceGit.ViewModels
|
||||||
ViewRevisionFileContent = new Models.RevisionBinaryFile() { Size = size };
|
ViewRevisionFileContent = new Models.RevisionBinaryFile() { Size = size };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -127,8 +127,8 @@ namespace SourceGit.ViewModels
|
||||||
binaryDiff.NewSize = File.Exists(fullPath) ? new FileInfo(fullPath).Length : 0;
|
binaryDiff.NewSize = File.Exists(fullPath) ? new FileInfo(fullPath).Length : 0;
|
||||||
}
|
}
|
||||||
rs = binaryDiff;
|
rs = binaryDiff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (latest.IsLFS)
|
else if (latest.IsLFS)
|
||||||
{
|
{
|
||||||
rs = latest.LFSDiff;
|
rs = latest.LFSDiff;
|
||||||
|
|
|
@ -12,4 +12,4 @@ namespace SourceGit.ViewModels
|
||||||
|
|
||||||
private object _data = null;
|
private object _data = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -102,7 +102,7 @@ namespace SourceGit.Views
|
||||||
if (left != null)
|
if (left != null)
|
||||||
{
|
{
|
||||||
return GetDesiredSize(left.Size, availableSize);
|
return GetDesiredSize(left.Size, availableSize);
|
||||||
}
|
}
|
||||||
else if (right != null)
|
else if (right != null)
|
||||||
{
|
{
|
||||||
return GetDesiredSize(right.Size, availableSize);
|
return GetDesiredSize(right.Size, availableSize);
|
||||||
|
|
|
@ -36,4 +36,4 @@ namespace SourceGit.Views
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue