feature: support delete key everywhere (#1412)

This commit is contained in:
Nathan Baulch 2025-06-11 17:35:43 +10:00 committed by GitHub
parent 5494093261
commit 196b454ae8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 127 additions and 11 deletions

View file

@ -1359,6 +1359,18 @@ namespace SourceGit.ViewModels
}
}
public void DeleteBranch(Models.Branch branch)
{
if (CanCreatePopup())
ShowPopup(new DeleteBranch(this, branch));
}
public void DeleteRemote(Models.Remote remote)
{
if (CanCreatePopup())
ShowPopup(new DeleteRemote(this, remote));
}
public void DeleteMultipleBranches(List<Models.Branch> branches, bool isLocal)
{
if (CanCreatePopup())
@ -1383,6 +1395,12 @@ namespace SourceGit.ViewModels
ShowPopup(new CreateTag(this, _currentBranch));
}
public void DeleteTag(Models.Tag tag)
{
if (CanCreatePopup())
ShowPopup(new DeleteTag(this, tag));
}
public void AddRemote()
{
if (CanCreatePopup())