Fix IsDevToolsOpened when devtools is attched to pane on Linux.
This commit is contained in:
parent
a8c5911094
commit
7a5415a3b7
1 changed files with 4 additions and 1 deletions
|
@ -167,7 +167,10 @@ void InspectableWebContentsViewLinux::CloseDevTools() {
|
|||
}
|
||||
|
||||
bool InspectableWebContentsViewLinux::IsDevToolsOpened() {
|
||||
return devtools_window_ && IsWidgetAncestryVisible(devtools_window_);
|
||||
auto devtools_web_contents =
|
||||
inspectable_web_contents()->devtools_web_contents();
|
||||
GtkWidget* devtools = devtools_web_contents->GetView()->GetNativeView();
|
||||
return IsWidgetAncestryVisible(devtools);
|
||||
}
|
||||
|
||||
bool InspectableWebContentsViewLinux::SetDockSide(const std::string& side) {
|
||||
|
|
Loading…
Reference in a new issue