mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 00:39:26 +00:00
Fixed connection button spamming
This commit is contained in:
parent
3a35d45ea8
commit
560a7073f4
1 changed files with 3 additions and 1 deletions
|
|
@ -27,9 +27,11 @@ func (ui *UiLib) Open(path string) {
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ui *UiLib) Connect() {
|
func (ui *UiLib) Connect(button qml.Object) {
|
||||||
if !ui.connected {
|
if !ui.connected {
|
||||||
ui.eth.Start()
|
ui.eth.Start()
|
||||||
|
ui.connected = true
|
||||||
|
button.Set("enabled", false)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue