From 30c2ad22ea17bf17e9839771b7acefd1f0fed782 Mon Sep 17 00:00:00 2001
From: Magnus Norddahl <dpjudas@users.noreply.github.com>
Date: Sat, 12 Sep 2020 02:15:21 +0200
Subject: [PATCH] Workaround groups Enabled flag not getting applied in mono
 winforms implementation

---
 Source/Core/Windows/LinedefEditForm.cs     | 3 +++
 Source/Core/Windows/LinedefEditFormUDMF.cs | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/Source/Core/Windows/LinedefEditForm.cs b/Source/Core/Windows/LinedefEditForm.cs
index f2cc1334a..46173d180 100755
--- a/Source/Core/Windows/LinedefEditForm.cs
+++ b/Source/Core/Windows/LinedefEditForm.cs
@@ -87,6 +87,9 @@ namespace CodeImp.DoomBuilder.Windows
 		{
 			// Initialize
 			InitializeComponent();
+			#if MONO_WINFORMS
+			frontgroup.Enabled = true;
+			#endif
 			
 			// Fill flags lists
 			foreach(KeyValuePair<string, string> lf in General.Map.Config.LinedefFlags)
diff --git a/Source/Core/Windows/LinedefEditFormUDMF.cs b/Source/Core/Windows/LinedefEditFormUDMF.cs
index 73f2f66b3..dbf4ea279 100755
--- a/Source/Core/Windows/LinedefEditFormUDMF.cs
+++ b/Source/Core/Windows/LinedefEditFormUDMF.cs
@@ -135,6 +135,9 @@ namespace CodeImp.DoomBuilder.Windows
 		{
 			// Initialize
 			InitializeComponent();
+			#if MONO_WINFORMS
+			frontgroup.Enabled = true;
+			#endif
 
 			// Widow setup
 			if(General.Settings.StoreSelectedEditTab)
-- 
GitLab