fix: correct reversed logic in NativeWindowMac::SetEnabled (#15324)
This commit is contained in:
parent
203c47f038
commit
c7501bd7ca
1 changed files with 2 additions and 2 deletions
|
@ -583,13 +583,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]];
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue