mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature: add context menu item to move repository node (#437)
This commit is contained in:
parent
837e3889b7
commit
dffd9d7676
7 changed files with 196 additions and 0 deletions
|
@ -172,6 +172,18 @@ namespace SourceGit.ViewModels
|
|||
};
|
||||
menu.Items.Add(edit);
|
||||
|
||||
var move = new MenuItem();
|
||||
move.Header = App.Text("Welcome.Move");
|
||||
move.Icon = App.CreateMenuIcon("Icons.Move");
|
||||
move.Click += (_, e) =>
|
||||
{
|
||||
if (PopupHost.CanCreatePopup())
|
||||
PopupHost.ShowPopup(new MoveRepositoryNode(node));
|
||||
|
||||
e.Handled = true;
|
||||
};
|
||||
menu.Items.Add(move);
|
||||
|
||||
if (node.IsRepository)
|
||||
{
|
||||
var explore = new MenuItem();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue