mirror of
https://github.com/wailsapp/wails.git
synced 2025-05-03 05:50:08 +08:00
Fix error: cannot use uri (type *_Ctype_char) as type string in argument to common.TranslateUriToFile.
This commit is contained in:
parent
59d29dc12f
commit
db8094cd68
@ -54,7 +54,7 @@ type Frontend struct {
|
|||||||
|
|
||||||
// main window handle
|
// main window handle
|
||||||
mainWindow *Window
|
mainWindow *Window
|
||||||
//minWidth, minHeight, maxWidth, maxHeight int
|
// minWidth, minHeight, maxWidth, maxHeight int
|
||||||
bindings *binding.Bindings
|
bindings *binding.Bindings
|
||||||
dispatcher frontend.Dispatcher
|
dispatcher frontend.Dispatcher
|
||||||
servingFromDisk bool
|
servingFromDisk bool
|
||||||
@ -231,9 +231,9 @@ func (f *Frontend) Notify(name string, data ...interface{}) {
|
|||||||
|
|
||||||
func (f *Frontend) processMessage(message string) {
|
func (f *Frontend) processMessage(message string) {
|
||||||
if message == "drag" {
|
if message == "drag" {
|
||||||
//if !f.mainWindow.IsFullScreen() {
|
// if !f.mainWindow.IsFullScreen() {
|
||||||
f.startDrag()
|
f.startDrag()
|
||||||
//}
|
// }
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -328,7 +328,7 @@ func (f *Frontend) processRequest(request unsafe.Pointer) {
|
|||||||
uri := C.webkit_uri_scheme_request_get_uri(req)
|
uri := C.webkit_uri_scheme_request_get_uri(req)
|
||||||
goURI := C.GoString(uri)
|
goURI := C.GoString(uri)
|
||||||
|
|
||||||
file, match, err := common.TranslateUriToFile(uri, "wails", "")
|
file, match, err := common.TranslateUriToFile(goURI, "wails", "")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
// TODO Handle errors
|
// TODO Handle errors
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user