From 87c81da5fff3dbf0e00a6c6d8326d3759d916a13 Mon Sep 17 00:00:00 2001 From: Curtis Wensley Date: Wed, 23 Aug 2023 17:03:21 -0700 Subject: [PATCH] Don't attach a dialog when launched from an NSPanel --- src/Eto.Mac/Forms/DialogHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Eto.Mac/Forms/DialogHandler.cs b/src/Eto.Mac/Forms/DialogHandler.cs index 91e73f38f..89be6427e 100644 --- a/src/Eto.Mac/Forms/DialogHandler.cs +++ b/src/Eto.Mac/Forms/DialogHandler.cs @@ -137,7 +137,7 @@ bool ShowAttached return false; // if the owner can't become main (e.g. NSPanel), show as attached - return !owner.CanBecomeMainWindow; + return !owner.CanBecomeMainWindow && owner is not NSPanel; } }