diff options
Diffstat (limited to 'app/account.go')
-rw-r--r-- | app/account.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/account.go b/app/account.go index 99739f01..ab5793bc 100644 --- a/app/account.go +++ b/app/account.go @@ -292,6 +292,16 @@ func (acct *AccountView) newStore(name string) *lib.MessageStore { msg := fmt.Sprintf("tag-modified hook: %s", err) PushError(msg) } + }, func(flagname string) { + err := hooks.RunHook(&hooks.FlagChanged{ + Account: acct.Name(), + Folder: acct.SelectedDirectory(), + FlagName: flagname, + }) + if err != nil { + msg := fmt.Sprintf("flag-changed hook: %s", err) + PushError(msg) + } }, acct.updateSplitView, acct.dirlist.UiConfig(name).ThreadContext, |