diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-28 19:18:19 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-28 19:18:19 +0800 |
commit | 560a7073f457a32c9d053f1a4b20f76d949f519d (patch) | |
tree | af34f0c678fc75dda0d186285240beef9aa5b42c | |
parent | 3a35d45ea84e055a4574a7a1d1b4b5485bea1331 (diff) | |
download | dexon-560a7073f457a32c9d053f1a4b20f76d949f519d.tar.gz dexon-560a7073f457a32c9d053f1a4b20f76d949f519d.tar.zst dexon-560a7073f457a32c9d053f1a4b20f76d949f519d.zip |
Fixed connection button spamming
-rw-r--r-- | ui/ui_lib.go | 4 |
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) } } |