MCPcopy
hub / github.com/hardentools/hardentools / showEndDialog

Function showEndDialog

gui.go:260–274  ·  view source on GitHub ↗

showEndDialog shows the close button after hardening/restoring.

(infoMessage string)

Source from the content-addressed store, hash-verified

258
259// showEndDialog shows the close button after hardening/restoring.
260func showEndDialog(infoMessage string) {
261 ch := make(chan bool)
262
263 fyne.Do(func() {
264 eventsTextAreaProgressBar.Hide()
265 inProgressLabel.Hide()
266 })
267 message := widget.NewLabelWithStyle(infoMessage, fyne.TextAlignCenter, fyne.TextStyle{Monospace: true})
268 messageBox.Add(container.NewVBox(message,
269 widget.NewButton("Close", func() {
270 ch <- true
271 })))
272
273 <-ch
274}
275
276// askElevationDialog asks the user if she wants to elevates her rights.
277func askElevationDialog() {

Callers 3

hardenAllFunction · 0.85
restoreAllFunction · 0.85
hardenDefaultsAgainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected