mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 API getTag add an optional parameter ignoreMaxListHint https://github.com/siyuan-note/siyuan/issues/16000
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
53f0467f73
commit
9f3cd7ca95
7 changed files with 31 additions and 8 deletions
|
|
@ -236,7 +236,7 @@ type Tag struct {
|
|||
|
||||
type Tags []*Tag
|
||||
|
||||
func BuildTags(ignoreMaxListHintArg bool) (ret *Tags) {
|
||||
func BuildTags(ignoreMaxListHintArg bool, appID string) (ret *Tags) {
|
||||
FlushTxQueue()
|
||||
sql.FlushQueue()
|
||||
|
||||
|
|
@ -255,7 +255,7 @@ func BuildTags(ignoreMaxListHintArg bool) (ret *Tags) {
|
|||
*tmp = append(*tmp, tag)
|
||||
countTag(tag, &total)
|
||||
if Conf.FileTree.MaxListCount < total && !ignoreMaxListHintArg {
|
||||
util.PushMsg(fmt.Sprintf(Conf.Language(243), Conf.FileTree.MaxListCount), 7000)
|
||||
util.PushMsgWithApp(appID, fmt.Sprintf(Conf.Language(243), Conf.FileTree.MaxListCount), 7000)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue