mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-26 22:10:21 +00:00
Cancel boxmenu if not clicking tab
contextmenu is set causing it to open for anywhere in the box area that's white only show if right clicking the tab at the top
This commit is contained in:
parent
cb0ae14a50
commit
39ce7e56e4
1 changed files with 1 additions and 0 deletions
|
@ -93,6 +93,7 @@ namespace PKHeX.WinForms.Controls
|
|||
GB_Daycare.Click += SwitchDaycare;
|
||||
FLP_SAVtools.Scroll += WinFormsUtil.PanelScroll;
|
||||
Tab_Box.ContextMenuStrip = SortMenu = new BoxMenuStrip(this);
|
||||
SortMenu.Opening += (s, x) => x.Cancel = !tabBoxMulti.GetTabRect(tabBoxMulti.SelectedIndex).Contains(PointToClient(MousePosition));
|
||||
|
||||
M.OtherSlots.Add(this);
|
||||
SL_Extra.ViewIndex = -2;
|
||||
|
|
Loading…
Reference in a new issue