fix: revert moving IsClosed() and IsClosable() into NativeWindow::Close() (#47482)

Revert "refactor: move `IsClosed()` and `IsClosable()` tests into `NativeWindow::Close()` (#46888)"

This reverts commit 3faddd5ae2.
This commit is contained in:
Keeley Hammond 2025-06-16 16:41:19 -07:00 committed by GitHub
commit 3536d4976a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 35 additions and 35 deletions

View file

@ -362,7 +362,8 @@ void BaseWindow::SetContentView(gin::Handle<View> view) {
}
void BaseWindow::CloseImmediately() {
window_->CloseImmediately();
if (!window_->IsClosed())
window_->CloseImmediately();
}
void BaseWindow::Close() {