mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-17 00:14:59 +00:00
code_review: PR #1412
- Use `ViewModels.StashesPage.SelectedStash` instead of `sender is not ListBox { SelectedValue: Models.Stash stash }` - In tags view, `SelectedItem` can be `Models.Tag` or `ViewModels.TagTreeNode` - In logs window, `vm.SelectedLog` may be null Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
196b454ae8
commit
a128b67bd4
10 changed files with 56 additions and 70 deletions
|
@ -1365,12 +1365,6 @@ namespace SourceGit.ViewModels
|
|||
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())
|
||||
|
@ -1407,6 +1401,12 @@ namespace SourceGit.ViewModels
|
|||
ShowPopup(new AddRemote(this));
|
||||
}
|
||||
|
||||
public void DeleteRemote(Models.Remote remote)
|
||||
{
|
||||
if (CanCreatePopup())
|
||||
ShowPopup(new DeleteRemote(this, remote));
|
||||
}
|
||||
|
||||
public void AddSubmodule()
|
||||
{
|
||||
if (CanCreatePopup())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue