add def settings

This commit is contained in:
YouROK
2021-03-05 11:29:40 +03:00
parent 80a5df7a47
commit 740b755f49
3 changed files with 19 additions and 3 deletions

View File

@@ -129,6 +129,15 @@ func SetSettings(set *sets.BTSets) {
bts.Connect()
}
func SetDefSettings() {
if sets.ReadOnly {
return
}
bts.Disconnect()
sets.SetDefault()
bts.Connect()
}
func Shutdown() {
bts.Disconnect()
sets.CloseDB()