Improve #1307
This commit is contained in:
parent
b52771e729
commit
32cd068427
5 changed files with 7 additions and 8 deletions
|
@ -284,9 +284,8 @@ bool NativeWindow::HasModalDialog() {
|
|||
return has_dialog_attached_;
|
||||
}
|
||||
|
||||
void NativeWindow::OpenDevTools(bool dock) {
|
||||
if (!dock)
|
||||
inspectable_web_contents()->SetCanDock(false);
|
||||
void NativeWindow::OpenDevTools(bool can_dock) {
|
||||
inspectable_web_contents()->SetCanDock(can_dock);
|
||||
inspectable_web_contents()->ShowDevTools();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue