Do not emit "unresponsive" when there is modal dialog
This commit is contained in:
parent
f4bec78ccb
commit
074903ca33
1 changed files with 1 additions and 1 deletions
|
@ -620,7 +620,7 @@ void NativeWindow::ScheduleUnresponsiveEvent(int ms) {
|
|||
void NativeWindow::NotifyWindowUnresponsive() {
|
||||
window_unresposive_closure_.Cancel();
|
||||
|
||||
if (!is_closed_ && !HasModalDialog())
|
||||
if (!is_closed_ && !HasModalDialog() && IsEnabled())
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver,
|
||||
observers_,
|
||||
OnRendererUnresponsive());
|
||||
|
|
Loading…
Reference in a new issue