feature: mark deleted repository and auto remove it after scan default clone dir (#576)

This commit is contained in:
leo 2024-10-20 20:42:14 +08:00
parent 9668efbd8c
commit 0539a94cbe
No known key found for this signature in database
4 changed files with 45 additions and 8 deletions

View file

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.IO;
using System.Text.Json.Serialization;
using CommunityToolkit.Mvvm.ComponentModel;
@ -48,6 +49,12 @@ namespace SourceGit.ViewModels
set => SetProperty(ref _isVisible, value);
}
[JsonIgnore]
public bool IsInvalid
{
get => _isRepository && !Directory.Exists(_id);
}
[JsonIgnore]
public int Depth
{