refactor: move IsClosed() and IsClosable() tests into NativeWindow::Close() (#46888)
refactor: devirtualize NativeWindow::IsClosed()
This commit is contained in:
parent
7153008bfa
commit
3faddd5ae2
8 changed files with 37 additions and 33 deletions
|
|
@ -362,8 +362,7 @@ void BaseWindow::SetContentView(gin::Handle<View> view) {
|
|||
}
|
||||
|
||||
void BaseWindow::CloseImmediately() {
|
||||
if (!window_->IsClosed())
|
||||
window_->CloseImmediately();
|
||||
window_->CloseImmediately();
|
||||
}
|
||||
|
||||
void BaseWindow::Close() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue