mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Pin tab menu tweak
This commit is contained in:
parent
f01665ac06
commit
08d292d3ea
1 changed files with 10 additions and 10 deletions
|
@ -6362,16 +6362,7 @@ namespace IDE
|
|||
Menu menu = new Menu();
|
||||
if (var sourceViewPanel = mContent as SourceViewPanel)
|
||||
{
|
||||
var item = menu.AddItem(this.mIsPinned ? "Unpin this tab" : "Pin this tab");
|
||||
item.mOnMenuItemSelected.Add(new (menu) =>
|
||||
{
|
||||
if (mIsRightTab)
|
||||
IDEApp.sApp.MakeTabPermanent(this);
|
||||
|
||||
mTabbedView.TogglePinned(this);
|
||||
});
|
||||
|
||||
item = menu.AddItem("Copy Full Path");
|
||||
var item = menu.AddItem("Copy Full Path");
|
||||
item.mOnMenuItemSelected.Add(new (menu) =>
|
||||
{
|
||||
gApp.SetClipboardText(sourceViewPanel.mFilePath);
|
||||
|
@ -6409,6 +6400,15 @@ namespace IDE
|
|||
{
|
||||
mTabbedView.CloseTabs(false, true, false);
|
||||
});
|
||||
|
||||
item = menu.AddItem(this.mIsPinned ? "Unpin Tab" : "Pin Tab");
|
||||
item.mOnMenuItemSelected.Add(new (menu) =>
|
||||
{
|
||||
if (mIsRightTab)
|
||||
IDEApp.sApp.MakeTabPermanent(this);
|
||||
|
||||
mTabbedView.TogglePinned(this);
|
||||
});
|
||||
}
|
||||
|
||||
if (menu.mItems.Count > 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue