mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
feature: mark deleted repository and auto remove it after scan default clone dir (#576)
This commit is contained in:
parent
9668efbd8c
commit
0539a94cbe
4 changed files with 45 additions and 8 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue