Browse Source

Detaching Added handler.

BDisp 2 years ago
parent
commit
b949d78064
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Terminal.Gui/Views/Menu.cs

+ 1 - 0
Terminal.Gui/Views/Menu.cs

@@ -1047,6 +1047,7 @@ namespace Terminal.Gui {
 		private void MenuBar_Added (View obj)
 		private void MenuBar_Added (View obj)
 		{
 		{
 			_initialCanFocus = CanFocus;
 			_initialCanFocus = CanFocus;
+			Added -= MenuBar_Added;
 		}
 		}
 
 
 		bool openedByAltKey;
 		bool openedByAltKey;