Browse Source

Merge pull request #7131 from electron/end-sheet-on-close

End sheet in parent when closing modal window
Cheng Zhao 8 years ago
parent
commit
2885e980a5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      atom/browser/native_window_mac.mm

+ 1 - 0
atom/browser/native_window_mac.mm

@@ -619,6 +619,7 @@ NativeWindowMac::~NativeWindowMac() {
 void NativeWindowMac::Close() {
   // When this is a sheet showing, performClose won't work.
   if (is_modal() && parent() && IsVisible()) {
+    [parent()->GetNativeWindow() endSheet:window_];
     CloseImmediately();
     return;
   }