Fix max and min on double click main menu buttons for custom menu bar

This commit is contained in:
Chandler Cox
2023-09-20 17:49:17 -05:00
parent 92733d1a69
commit eb5a1f1103

View File

@@ -292,7 +292,8 @@ namespace FlaxEditor.GUI
return true;
#if PLATFORM_WINDOWS
if (_useCustomWindowSystem)
var child = GetChildAtRecursive(location);
if (_useCustomWindowSystem && child is not Button && child is not MainMenuButton)
{
if (_window.IsMaximized)
_window.Restore();