MCPcopy
hub / github.com/hardentools/hardentools / ShowNotHardened

Function ShowNotHardened

gui.go:393–408  ·  view source on GitHub ↗

ShowNotHardened sets GUI result for name to not hardened

(name string)

Source from the content-addressed store, hash-verified

391
392// ShowNotHardened sets GUI result for name to not hardened
393func ShowNotHardened(name string) {
394 label := stateLabels[name]
395 if label != nil {
396 fyne.Do(func() {
397 label.SetText("not hardened")
398 })
399 } else {
400 stateLabels[name] = widget.NewLabel("not hardened")
401
402 fyne.Do(func() {
403 firstColumn.Add(container.NewHBox(widget.NewLabel(name)))
404 secondColumn.Add(container.NewHBox(widget.NewLabel("not selected")))
405 thirdColumn.Add(container.NewHBox(stateLabels[name]))
406 })
407 }
408}
409
410func cmdHarden() {
411 cmdHardenRestore(true)

Callers 1

showStatusFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected