ShowFailure sets GUI status of name field to failureText
(name, failureText string)
| 359 | |
| 360 | // ShowFailure sets GUI status of name field to failureText |
| 361 | func ShowFailure(name, failureText string) { |
| 362 | if mainWindow != nil { |
| 363 | stateLabels[name] = widget.NewLabel("...") |
| 364 | firstColumn.Add(container.NewHBox(widget.NewLabel(name))) |
| 365 | secondColumn.Add(container.NewHBox(widget.NewLabelWithStyle("FAIL", fyne.TextAlignLeading, fyne.TextStyle{Bold: true}))) |
| 366 | thirdColumn.Add(container.NewHBox(stateLabels[name])) |
| 367 | |
| 368 | showErrorDialog(name + " failed with error:\n" + failureText) |
| 369 | } else { |
| 370 | Info.Println(name + " failed with error: " + failureText) |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | // ShowIsHardened sets GUI result for name to is hardened |
| 375 | func ShowIsHardened(name string) { |
no test coverage detected