5
0
mirror of https://github.com/wailsapp/wails.git synced 2025-05-17 01:19:29 +08:00

[v3 linux] update devtools behavior to match win/mac

This commit is contained in:
Travis McLane 2023-10-31 14:01:48 -05:00
parent b379e3b0eb
commit 01652c7940
2 changed files with 10 additions and 1 deletions

View File

@ -314,7 +314,7 @@ func (w *linuxWebviewWindow) setResizable(resizable bool) {
}
func (w *linuxWebviewWindow) toggleDevTools() {
windowToggleDevTools(w.webview)
showDevTools(w.webview)
}
func (w *linuxWebviewWindow) size() (int, int) {

View File

@ -0,0 +1,9 @@
//go:build linux && !production
package application
func init() {
showDevTools = func(wv pointer) {
windowToggleDevTools(wv)
}
}