small fix
This commit is contained in:
@@ -84,7 +84,7 @@ func main() {
|
||||
txtResults.ShowLineNumbers = true
|
||||
|
||||
loadPasswordsBtn.Disable()
|
||||
// addPasswordBtn.Disable()
|
||||
addPasswordBtn.Disable()
|
||||
enrollBtn.Disable()
|
||||
|
||||
cntButtons := container.NewGridWithColumns(4, authBtn, loadPasswordsBtn, addPasswordBtn, enrollBtn)
|
||||
@@ -146,6 +146,7 @@ func handleSerial() {
|
||||
|
||||
if err != nil {
|
||||
fmt.Printf("Error occured: %v", err.Error())
|
||||
time.Sleep(time.Second * 2)
|
||||
break
|
||||
}
|
||||
|
||||
@@ -248,5 +249,9 @@ func handlePacket(packet *Packet) {
|
||||
|
||||
loadPasswordsBtn.Disable()
|
||||
}
|
||||
|
||||
if packet.Type == "password" {
|
||||
dialog.ShowInformation("Password", "Password: "+packet.Data, window)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user