fix: correct reversed logic in NativeWindowMac::SetEnabled (#15257)

This commit is contained in:
Michelle Tilley 2018-10-22 13:01:45 -07:00 committed by GitHub
parent 044e43397f
commit 13247e592b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -585,13 +585,13 @@ bool NativeWindowMac::IsEnabled() {
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]];
}
}