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

Backport of #15257
This commit is contained in:
Michelle Tilley
2018-10-23 05:22:07 -07:00
committed by Samuel Attard
parent d45c29087b
commit a03da04578

View File

@@ -1155,12 +1155,12 @@ 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]];
}
}