Skip to content

Commit

Permalink
fix: correct reversed logic in NativeWindowMac::SetEnabled (electron#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Michelle Tilley authored Oct 22, 2018
1 parent 044e433 commit 13247e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atom/browser/native_window_mac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,13 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {

void NativeWindowMac::SetEnabled(bool enable) {
if (enable) {
[window_ endSheet:[window_ attachedSheet]];
} else {
[window_ beginSheet:window_
completionHandler:^(NSModalResponse returnCode) {
NSLog(@"modal enabled");
return;
}];
} else {
[window_ endSheet:[window_ attachedSheet]];
}
}

Expand Down

0 comments on commit 13247e5

Please sign in to comment.