Skip to content

Commit

Permalink
fix: set ForegroundWindow when SetVisibility
Browse files Browse the repository at this point in the history
fix: set ForegroundWindow when SetVisibility
  • Loading branch information
inkeliz authored Jun 10, 2021
2 parents 8aa7e07 + 156f544 commit 01ba815
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
3 changes: 1 addition & 2 deletions gowebview.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ type WebView interface {
SetSize(point *Point, hint Hint)

// Navigate navigates webview to the given URL. URL may be a data URI, i.e.
// "data:text/text,<html>...</html>". It is often ok not to url-encode it
// properly, webview will re-encode it for you.
// "data:text/text,<html>...</html>".
SetURL(url string)

// SetVisibility updates the WindowMode, such as minimized or maximized
Expand Down
Binary file modified gowebview_android.jar
Binary file not shown.
1 change: 1 addition & 0 deletions gowebview_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ func (w *webview) SetVisibility(v Visibility) {
w32.ShowWindow(w.view.window, w32.SW_MINIMIZE)
default:
w32.ShowWindow(w.view.window, w32.SW_SHOWDEFAULT)
w32.SetForegroundWindow(w.view.window)
}
}

Expand Down

0 comments on commit 01ba815

Please sign in to comment.