diff --git a/assets/style.css b/assets/index.css similarity index 100% rename from assets/style.css rename to assets/index.css diff --git a/assets/index.html b/assets/index.html index e9d9a29..243ec25 100644 --- a/assets/index.html +++ b/assets/index.html @@ -3,7 +3,7 @@ - + @@ -100,6 +100,6 @@

Stream

- + diff --git a/assets/stuff.js b/assets/index.js similarity index 100% rename from assets/stuff.js rename to assets/index.js diff --git a/go.mod b/go.mod index 22f38a3..5895c0f 100644 --- a/go.mod +++ b/go.mod @@ -2,10 +2,7 @@ module github.com/fpv-wtf/dji-moonlight-gui go 1.20 -require ( - github.com/jchv/go-webview2 v0.0.0-20221223143126-dc24628cff85 - github.com/webview/webview v0.0.0-20230210061304-7b40e46d97e9 -) +require github.com/jchv/go-webview2 v0.0.0-20221223143126-dc24628cff85 require ( github.com/jchv/go-winloader v0.0.0-20200815041850-dec1ee9a7fd5 // indirect diff --git a/go.sum b/go.sum index 970b88e..d8461fb 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,6 @@ github.com/jchv/go-webview2 v0.0.0-20221223143126-dc24628cff85 h1:t6lhRbwURcdWgp github.com/jchv/go-webview2 v0.0.0-20221223143126-dc24628cff85/go.mod h1:/BNVc0Sw3Wj6Sz9uSxPwhCEUhhWs92hPde75K2YV24A= github.com/jchv/go-winloader v0.0.0-20200815041850-dec1ee9a7fd5 h1:pdFFlHXY9tZXmJz+tRSm1DzYEH4ebha7cffmm607bMU= github.com/jchv/go-winloader v0.0.0-20200815041850-dec1ee9a7fd5/go.mod h1:alcuEEnZsY1WQsagKhZDsoPCRoOijYqhZvPwLG0kzVs= -github.com/webview/webview v0.0.0-20230210061304-7b40e46d97e9 h1:SPyWnfToUom3xNh3dKGkq1ZV7pw+VSWDcfVrUM1nRWs= -github.com/webview/webview v0.0.0-20230210061304-7b40e46d97e9/go.mod h1:rpXAuuHgyEJb6kXcXldlkOjU6y4x+YcASKKXJNUhh0Y= golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210218145245-beda7e5e158e h1:f5mksnk+hgXHnImpZoWj64ja99j9zV7YUgrVG95uFE4= golang.org/x/sys v0.0.0-20210218145245-beda7e5e158e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= diff --git a/main.go b/main.go index d9e6d76..b067b4f 100644 --- a/main.go +++ b/main.go @@ -262,7 +262,7 @@ func main() { Center: true, Height: WindowHeight, IconId: 0, - Title: "DJI Moonlight", + Title: "DJI Moonlight (v1.0.2)", Width: WindowWidth, }, }) @@ -292,9 +292,6 @@ func main() { // Get current directory dir, _ := os.Getwd() - w.SetSize(WindowWidth, WindowHeight, webview2.HintFixed) - w.Navigate("file://" + dir + "/assets/index.html") - w.Bind("b_getGames", m.GetGames) w.Bind("b_pair", m.Pair) w.Bind("b_unpair", m.Unpair) @@ -302,5 +299,8 @@ func main() { w.Bind("b_streamGame", m.StreamGame) w.Bind("b_quit", m.Quit) + w.SetSize(WindowWidth, WindowHeight, webview2.HintFixed) + w.Navigate("file://" + dir + "/assets/index.html") + w.Run() }