showEndDialog shows the close button after hardening/restoring.
(infoMessage string)
| 258 | |
| 259 | // showEndDialog shows the close button after hardening/restoring. |
| 260 | func 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. |
| 277 | func askElevationDialog() { |
no outgoing calls
no test coverage detected