mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-28 23:54:59 +00:00
feature<PageTabBar>: add context menu to copy repositories store path
This commit is contained in:
parent
bb6c99056e
commit
9e8cf02370
3 changed files with 11 additions and 1 deletions
|
@ -336,7 +336,15 @@ namespace SourceGit.Views.Widgets {
|
|||
}
|
||||
menu.Items.Add(new Separator());
|
||||
menu.Items.Add(bookmark);
|
||||
}
|
||||
|
||||
var copyPath = new MenuItem();
|
||||
copyPath.Header = App.Text("PageTabBar.Tab.CopyPath");
|
||||
copyPath.Click += (_, __) => {
|
||||
Clipboard.SetDataObject(tab.Id);
|
||||
};
|
||||
menu.Items.Add(new Separator());
|
||||
menu.Items.Add(copyPath);
|
||||
}
|
||||
|
||||
menu.IsOpen = true;
|
||||
e.Handled = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue