Skip to content

Commit

Permalink
Don't attach a dialog when launched from an NSPanel
Browse files Browse the repository at this point in the history
  • Loading branch information
cwensley committed Aug 24, 2023
1 parent f5c1537 commit 87c81da
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 87c81da

Please sign in to comment.