mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 15:42:34 +01:00
🎨 Support setting status bar message switch https://github.com/siyuan-note/siyuan/issues/16236
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
d44c12be0b
commit
21d6a24999
17 changed files with 41 additions and 27 deletions
|
|
@ -230,6 +230,8 @@ func skipPushTaskAction(action string) bool {
|
|||
return util.StatusBarCfg.MsgTaskHistoryDatabaseIndexCommitDisabled
|
||||
case AssetContentDatabaseIndexCommit:
|
||||
return util.StatusBarCfg.MsgTaskAssetDatabaseIndexCommitDisabled
|
||||
case HistoryGenerateFile:
|
||||
return util.StatusBarCfg.MsgTaskHistoryGenerateFileDisabled
|
||||
default:
|
||||
return false
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@ type StatusBar struct {
|
|||
MsgTaskDatabaseIndexCommitDisabled bool `json:"msgTaskDatabaseIndexCommitDisabled"`
|
||||
MsgTaskHistoryDatabaseIndexCommitDisabled bool `json:"msgTaskHistoryDatabaseIndexCommitDisabled"`
|
||||
MsgTaskAssetDatabaseIndexCommitDisabled bool `json:"msgTaskAssetDatabaseIndexCommitDisabled"`
|
||||
MsgTaskHistoryGenerateFileDisabled bool `json:"msgTaskHistoryGenerateFileDisabled"`
|
||||
}
|
||||
|
||||
var StatusBarCfg *StatusBar
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue