This commit is contained in:
2025-07-22 14:10:57 -07:00
parent 0967834f6b
commit cbbc36ec03
8 changed files with 52 additions and 75 deletions

View File

@@ -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",

View File

@@ -163,7 +163,7 @@ type Asset struct {
// CheckForUpdateWithAssets returns update information including download assets
func CheckForUpdateWithAssets(currentVersion string) (*UpdateInfo, bool, error) {
resp, err := http.Get("https://api.github.com/repos/tairasu/EpochSilicon/releases/latest")
resp, err := http.Get("https://git.burkey.co/api/v1/repos/eburk/epochsilicon/releases/latest")
if err != nil {
return nil, false, err
}