🎨 改进云端同步试用超过最大存储提示文案

This commit is contained in:
Liang Ding 2022-09-14 09:43:48 +08:00
parent eefede8fff
commit 6341073ebe
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
6 changed files with 8 additions and 5 deletions

View file

@ -521,6 +521,9 @@ func syncRepo(boot, exit, byHand bool) (err error) {
msg := fmt.Sprintf(Conf.Language(80), formatErrorMsg(err))
if errors.Is(err, dejavu.ErrCloudStorageSizeExceeded) {
msg = fmt.Sprintf(Conf.Language(43), humanize.Bytes(uint64(Conf.User.UserSiYuanRepoSize)))
if 2 == Conf.User.UserSiYuanSubscriptionPlan {
msg = fmt.Sprintf(Conf.Language(68), humanize.Bytes(uint64(Conf.User.UserSiYuanRepoSize)))
}
}
Conf.Sync.Stat = msg
util.PushStatusBar(msg)