mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-10 22:19:46 +08:00
Fix tests for Windows
This commit is contained in:
parent
1cba1416a1
commit
d405bd48f0
@ -318,7 +318,7 @@ func (m *windowsApp) unregisterWindow(w *windowsWebviewWindow) {
|
|||||||
func newPlatformApp(app *App) *windowsApp {
|
func newPlatformApp(app *App) *windowsApp {
|
||||||
err := w32.SetProcessDPIAware()
|
err := w32.SetProcessDPIAware()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globalApplication.fatal("Fatal error in application initialisation: ", err.Error())
|
globalApplication.fatal("Fatal error in application initialisation: %s", err.Error())
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -114,7 +114,7 @@ func (m *windowsMenuItem) setBitmap(bitmap []byte) {
|
|||||||
// Set the icon
|
// Set the icon
|
||||||
err := w32.SetMenuIcons(m.hMenu, m.id, bitmap, nil)
|
err := w32.SetMenuIcons(m.hMenu, m.id, bitmap, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globalApplication.error("Unable to set bitmap on menu item", "error", err.Error())
|
globalApplication.error("Unable to set bitmap on menu item: %s", err.Error())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
m.update()
|
m.update()
|
||||||
|
@ -1318,7 +1318,7 @@ func (w *windowsWebviewWindow) processRequest(req *edge.ICoreWebView2WebResource
|
|||||||
uri, _ := req.GetUri()
|
uri, _ := req.GetUri()
|
||||||
reqUri, err := url.ParseRequestURI(uri)
|
reqUri, err := url.ParseRequestURI(uri)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
globalApplication.error("Unable to parse request uri", "uri", uri, "error", err)
|
globalApplication.error("Unable to parse request uri: uri='%s' error='%s'", uri, err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user