mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-24 01:13:11 +08:00
connect/disconnect button modification
This commit is contained in:
@@ -56,13 +56,13 @@ func GetNetworksView(networks []string) fyne.CanvasObject {
|
|||||||
}
|
}
|
||||||
if cfg.Node.Connected == "yes" {
|
if cfg.Node.Connected == "yes" {
|
||||||
grid.Add(
|
grid.Add(
|
||||||
components.ColoredIconButton("connection", theme.CheckButtonCheckedIcon(), func() {
|
components.ColoredIconButton("disconnect", theme.CheckButtonCheckedIcon(), func() {
|
||||||
disconnect(*network)
|
disconnect(*network)
|
||||||
}, components.Gravitl_color),
|
}, components.Gravitl_color),
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
grid.Add(
|
grid.Add(
|
||||||
components.ColoredIconButton("connection", theme.CheckButtonIcon(), func() {
|
components.ColoredIconButton("connect", theme.CheckButtonIcon(), func() {
|
||||||
connect(*network)
|
connect(*network)
|
||||||
}, components.Danger_color),
|
}, components.Danger_color),
|
||||||
)
|
)
|
||||||
|
|||||||
BIN
netclient/main.exe
Executable file
BIN
netclient/main.exe
Executable file
Binary file not shown.
Reference in New Issue
Block a user