mirror of
https://github.com/mRemoteNG/mRemoteNG.git
synced 2026-02-17 22:11:48 +08:00
do nothing if double click on close is not set
This commit is contained in:
@@ -1356,16 +1356,17 @@ namespace mRemoteNG.UI.Tabs
|
||||
{
|
||||
if (m.Msg == (int)Msgs.WM_LBUTTONDBLCLK)
|
||||
{
|
||||
if (Settings.Default.DoubleClickOnTabClosesIt)
|
||||
// If the option is not set, do nothing. Do not send the message to base.
|
||||
if (!Settings.Default.DoubleClickOnTabClosesIt) return;
|
||||
|
||||
// Option is set, close the tab, then send to base.
|
||||
DockPane.CloseActiveContent();
|
||||
if (PatchController.EnableMemoryLeakFix == true)
|
||||
{
|
||||
DockPane.CloseActiveContent();
|
||||
if (PatchController.EnableMemoryLeakFix == true)
|
||||
{
|
||||
ContentClosed();
|
||||
}
|
||||
return;
|
||||
ContentClosed();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
base.WndProc(ref m);
|
||||
|
||||
Reference in New Issue
Block a user