Skip to content

Commit

Permalink
Merge pull request #2544 from cwensley/curtis/mac-no-attach-on-nspanel
Browse files Browse the repository at this point in the history
Don't attach a dialog when launched from an NSPanel
  • Loading branch information
cwensley authored Aug 24, 2023
2 parents f5c1537 + 87c81da commit 6be061e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Eto.Mac/Forms/DialogHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 6be061e

Please sign in to comment.