Call WasShown when showing window
Otherwise WebContents would be invisible when window is hidden at first and then show later. Refs #2879.
This commit is contained in:
parent
fc422e5d55
commit
da57a3101f
2 changed files with 7 additions and 0 deletions
|
@ -338,15 +338,18 @@ bool NativeWindowViews::IsFocused() {
|
|||
}
|
||||
|
||||
void NativeWindowViews::Show() {
|
||||
web_contents()->WasShown();
|
||||
window_->native_widget_private()->ShowWithWindowState(GetRestoredState());
|
||||
}
|
||||
|
||||
void NativeWindowViews::ShowInactive() {
|
||||
web_contents()->WasShown();
|
||||
window_->ShowInactive();
|
||||
}
|
||||
|
||||
void NativeWindowViews::Hide() {
|
||||
window_->Hide();
|
||||
web_contents()->WasHidden();
|
||||
}
|
||||
|
||||
bool NativeWindowViews::IsVisible() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue