This commit is contained in:
Michael Bucari-Tovo 2022-07-23 21:04:06 -06:00
parent 8dd59cb08a
commit ffd947eb2e

View File

@ -99,7 +99,7 @@ namespace LibationAvalonia
public static void HideMinMaxBtns(this Window form) public static void HideMinMaxBtns(this Window form)
{ {
if (Design.IsDesignMode && App.PlatformID is not PlatformID.Win32NT) if (Design.IsDesignMode || App.PlatformID is not PlatformID.Win32NT)
return; return;
var handle = form.PlatformImpl.Handle.Handle; var handle = form.PlatformImpl.Handle.Handle;
var currentStyle = GetWindowLong(handle, GWL_STYLE); var currentStyle = GetWindowLong(handle, GWL_STYLE);