1.0.0
This commit is contained in:
@@ -114,8 +114,10 @@ func ShowUpdateDialog(updateInfo *utils.UpdateInfo, currentVersion string, myWin
|
||||
return
|
||||
}
|
||||
|
||||
progressLabel.SetText("Installing update...")
|
||||
progressBar.SetValue(1.0)
|
||||
fyne.DoAndWait(func() {
|
||||
progressLabel.SetText("Installing update...")
|
||||
progressBar.SetValue(1.0)
|
||||
})
|
||||
|
||||
// Install update
|
||||
err = utils.InstallUpdate(downloadPath)
|
||||
@@ -124,14 +126,18 @@ func ShowUpdateDialog(updateInfo *utils.UpdateInfo, currentVersion string, myWin
|
||||
debug.Printf("Installation failed: %v", err)
|
||||
|
||||
// Re-enable close button
|
||||
d.SetButtons([]fyne.CanvasObject{
|
||||
widget.NewButton("Close", func() { d.Hide() }),
|
||||
fyne.DoAndWait(func() {
|
||||
d.SetButtons([]fyne.CanvasObject{
|
||||
widget.NewButton("Close", func() { d.Hide() }),
|
||||
})
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
// Success - show restart dialog
|
||||
progressLabel.SetText("Update installed successfully!")
|
||||
fyne.DoAndWait(func() {
|
||||
progressLabel.SetText("Update installed successfully!")
|
||||
})
|
||||
|
||||
restartDialog := dialog.NewConfirm(
|
||||
"Update Complete",
|
||||
|
Reference in New Issue
Block a user