Finish the preference.

This commit is contained in:
lishuang
2020-06-05 21:47:02 +08:00
parent 76c763b84d
commit 4a1e4c1d68
4 changed files with 6 additions and 0 deletions

View File

@ -22,6 +22,8 @@ func (this *PreferenceDao) Fetch() *Preference {
if db.Error.Error() == result.DB_ERROR_NOT_FOUND {
preference.Name = "EyeblueTank"
preference.Version = core.VERSION
//Default Office preview url.
preference.OfficeUrl = "https://view.officeapps.live.com/op/embed.aspx?src="
this.Create(preference)
return preference
} else {