aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/ui_lib.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/ui_lib.go b/ui/ui_lib.go
index 93712eba2..c956fd032 100644
--- a/ui/ui_lib.go
+++ b/ui/ui_lib.go
@@ -27,9 +27,11 @@ func (ui *UiLib) Open(path string) {
}()
}
-func (ui *UiLib) Connect() {
+func (ui *UiLib) Connect(button qml.Object) {
if !ui.connected {
ui.eth.Start()
+ ui.connected = true
+ button.Set("enabled", false)
}
}