This repository was archived by the owner on Feb 27, 2024. It is now read-only.
File tree 3 files changed +9
-1
lines changed
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ require (
13
13
github.com/fyne-io/gl-js v0.0.0-20220119005834-d2da28d9ccfe // indirect
14
14
github.com/fyne-io/glfw-js v0.0.0-20220120001248-ee7290d23504 // indirect
15
15
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 // indirect
16
+ github.com/fyne-io/mobile v0.1.2 // indirect
16
17
github.com/go-gl/gl v0.0.0-20211210172815-726fda9656d6 // indirect
17
18
github.com/go-gl/glfw/v3.3/glfw v0.0.0-20211213063430-748e38ca8aec // indirect
18
19
github.com/godbus/dbus/v5 v5.1.0 // indirect
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ github.com/fyne-io/glfw-js v0.0.0-20220120001248-ee7290d23504 h1:+31CdF/okdokeFN
89
89
github.com/fyne-io/glfw-js v0.0.0-20220120001248-ee7290d23504 /go.mod h1:gLRWYfYnMA9TONeppRSikMdXlHQ97xVsPojddUv3b/E =
90
90
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 h1:hnLq+55b7Zh7/2IRzWCpiTcAvjv/P8ERF+N7+xXbZhk =
91
91
github.com/fyne-io/image v0.0.0-20220602074514-4956b0afb3d2 /go.mod h1:eO7W361vmlPOrykIg+Rsh1SZ3tQBaOsfzZhsIOb/Lm0 =
92
+ github.com/fyne-io/mobile v0.1.2 h1:0HaXDtOOwyOTn3Umi0uKVCOgJtfX73c6unC4U8i5VZU =
92
93
github.com/fyne-io/mobile v0.1.2 /go.mod h1:/kOrWrZB6sasLbEy2JIvr4arEzQTXBTZGb3Y96yWbHY =
93
94
github.com/ghodss/yaml v1.0.0 /go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04 =
94
95
github.com/go-gl/gl v0.0.0-20190320180904-bf2b1f2f34d7 /go.mod h1:482civXOzJJCPzJ4ZOX/pwvXBWSnzD4OKMdH4ClKGbk =
Original file line number Diff line number Diff line change 7
7
"os"
8
8
9
9
"fyne.io/fyne/v2/dialog"
10
+ "fyne.io/fyne/v2/theme"
10
11
11
12
"fyne.io/fyne/v2"
12
13
"fyne.io/fyne/v2/app"
@@ -36,6 +37,7 @@ func main() {
36
37
}
37
38
38
39
app := app .New ()
40
+ app .Settings ().SetTheme (theme .LightTheme ())
39
41
window := app .NewWindow ("MCSManager Launcher" )
40
42
window .Resize (fyne.Size {Width : 320 , Height : 260 })
41
43
window .SetFullScreen (false )
@@ -69,7 +71,11 @@ func main() {
69
71
}
70
72
71
73
openBrowser := widget .NewButton ("访问面板" , func () {
72
- if err := utils .Open (fmt .Sprintf ("http://localhost:%d/" , webConfig .HttpPort )); err != nil {
74
+ var port = 23333
75
+ if webConfig .HttpPort > 0 {
76
+ port = webConfig .HttpPort
77
+ }
78
+ if err := utils .Open (fmt .Sprintf ("http://localhost:%d/" , port )); err != nil {
73
79
fmt .Printf ("Open Browser err %v\n " , err )
74
80
}
75
81
})
You can’t perform that action at this time.
0 commit comments