mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-10 16:41:18 +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 {
|
||||
err := w32.SetProcessDPIAware()
|
||||
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)
|
||||
}
|
||||
|
||||
@ -361,5 +361,5 @@ func (a *App) platformEnvironment() map[string]any {
|
||||
|
||||
func fatalHandler(errFunc func(error)) {
|
||||
w32.Fatal = errFunc
|
||||
return
|
||||
return
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ func (m *windowsMenuItem) setBitmap(bitmap []byte) {
|
||||
// Set the icon
|
||||
err := w32.SetMenuIcons(m.hMenu, m.id, bitmap, 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
|
||||
}
|
||||
m.update()
|
||||
|
@ -1318,7 +1318,7 @@ func (w *windowsWebviewWindow) processRequest(req *edge.ICoreWebView2WebResource
|
||||
uri, _ := req.GetUri()
|
||||
reqUri, err := url.ParseRequestURI(uri)
|
||||
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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user