mirror of
https://github.com/wavetermdev/backup.git
synced 2026-08-05 13:57:07 -07:00
Add auto updater configuration (#122)
Adds a new set of configurations for managing whether the app will automatically check for updates. Ports over the auto update code from the old app. In this version, the main difference is that updates can be manually checked for using a menu bar item, even if auto updates are disabled.
This commit is contained in:
@@ -36,11 +36,17 @@ type BlockHeaderOpts struct {
|
||||
ShowBlockIds bool `json:"showblockids"`
|
||||
}
|
||||
|
||||
type AutoUpdateOpts struct {
|
||||
Enabled bool `json:"enabled"`
|
||||
IntervalMs uint32 `json:"intervalms"`
|
||||
}
|
||||
|
||||
type SettingsConfigType struct {
|
||||
MimeTypes map[string]MimeTypeConfigType `json:"mimetypes"`
|
||||
Term TerminalConfigType `json:"term"`
|
||||
Widgets []WidgetsConfigType `json:"widgets"`
|
||||
BlockHeader BlockHeaderOpts `json:"blockheader"`
|
||||
AutoUpdate AutoUpdateOpts `json:"autoupdate"`
|
||||
}
|
||||
|
||||
func getSettingsConfigDefaults() SettingsConfigType {
|
||||
@@ -97,5 +103,9 @@ func getSettingsConfigDefaults() SettingsConfigType {
|
||||
},
|
||||
},
|
||||
},
|
||||
AutoUpdate: AutoUpdateOpts{
|
||||
Enabled: true,
|
||||
IntervalMs: 3600000,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user