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

This commit is contained in:
trop[bot]
2018-10-23 23:22:29 +11:00
committed by Samuel Attard
parent a313aaea72
commit 17b80ebb9c

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]];
}
}