chore: disable auto updater if version is dev

This commit is contained in:
Medzik 2021-09-07 20:37:03 +00:00
parent fa03e08b28
commit 6af384e731
1 changed files with 20 additions and 16 deletions

View File

@ -96,6 +96,9 @@ func main() {
}
if config.Toml.AutoUpdate.Enabled {
if config.Version == "dev" {
log.Warn("You using dev version. Auto Update DISABLED!")
} else {
wg.Add(1)
client := updater.Client{
@ -115,6 +118,7 @@ func main() {
}
go client.AutoUpdater()
}
} else {
log.Warn("Auto Update -> Disabled")
}