mirror of
https://github.com/electron/electron.git
synced 2026-01-24 14:57:58 -05:00
Do not send "unresponsive" when window is closed.
This commit is contained in:
@@ -576,7 +576,7 @@ void NativeWindow::ScheduleUnresponsiveEvent(int ms) {
|
||||
void NativeWindow::NotifyWindowUnresponsive() {
|
||||
window_unresposive_closure_.Cancel();
|
||||
|
||||
if (!HasModalDialog())
|
||||
if (!is_closed_ && !HasModalDialog())
|
||||
FOR_EACH_OBSERVER(NativeWindowObserver,
|
||||
observers_,
|
||||
OnRendererUnresponsive());
|
||||
|
||||
Reference in New Issue
Block a user