feat: implement automatic update checking and downloading functionality in the desktop app, enhancing user experience with seamless updates and corresponding UI settings
This commit is contained in:
@@ -68,3 +68,17 @@ func (a *App) GetAPILanBaseURL() string {
|
||||
func (a *App) GetDesktopListenPublicActive() bool {
|
||||
return a.listenPublic
|
||||
}
|
||||
|
||||
// CheckForUpdates manually triggers the update check from the frontend.
|
||||
func (a *App) CheckForUpdates() {
|
||||
if a.ctx != nil {
|
||||
checkUpdate(a.ctx, desktopAboutVersion(), true, false)
|
||||
}
|
||||
}
|
||||
|
||||
// AutoCheckForUpdates silently checks for updates and downloads them.
|
||||
func (a *App) AutoCheckForUpdates() {
|
||||
if a.ctx != nil {
|
||||
checkUpdate(a.ctx, desktopAboutVersion(), false, true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user