From e1bd92623732b27d5800d8e24d431e5e6f799d0f Mon Sep 17 00:00:00 2001 From: Nick Leeman Date: Wed, 26 Jan 2022 19:51:15 +0100 Subject: [PATCH] small fix --- SecuritasApp/main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SecuritasApp/main.go b/SecuritasApp/main.go index b4f9ec8..37812dc 100644 --- a/SecuritasApp/main.go +++ b/SecuritasApp/main.go @@ -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) + } } }