style: add .editorconfig for code formatting. see issu #25

This commit is contained in:
leo 2024-03-18 09:37:06 +08:00
parent a8eeea4f78
commit 18aaa0a143
225 changed files with 7781 additions and 3911 deletions

View file

@ -1,11 +1,15 @@
using Avalonia.Collections;
using Avalonia.Data.Converters;
using System.Collections.Generic;
using System.Collections.Generic;
namespace SourceGit.Converters {
public static class LauncherPageConverters {
using Avalonia.Collections;
using Avalonia.Data.Converters;
namespace SourceGit.Converters
{
public static class LauncherPageConverters
{
public static FuncMultiValueConverter<object, bool> ToTabSeperatorVisible =
new FuncMultiValueConverter<object, bool>(v => {
new FuncMultiValueConverter<object, bool>(v =>
{
if (v == null) return false;
var array = new List<object>();
@ -18,11 +22,14 @@ namespace SourceGit.Converters {
var selected = array[1] as ViewModels.LauncherPage;
var collections = array[2] as AvaloniaList<ViewModels.LauncherPage>;
if (selected != null && collections != null && (self == selected || collections.IndexOf(self) + 1 == collections.IndexOf(selected))) {
if (selected != null && collections != null && (self == selected || collections.IndexOf(self) + 1 == collections.IndexOf(selected)))
{
return false;
} else {
}
else
{
return true;
}
});
}
}
}