Fixes related to addons

- Fix applying new-items from addon results
- Notify joex when a scheduled addon is updated
This commit is contained in:
eikek
2022-05-23 23:28:54 +02:00
parent 2dedb6d7a1
commit 6c57077d68
3 changed files with 20 additions and 16 deletions

View File

@ -25,7 +25,7 @@ object AddonOutput {
val empty: AddonOutput = AddonOutput()
def combine(a: AddonOutput, b: AddonOutput): AddonOutput =
AddonOutput(a.commands ++ b.commands, a.files ++ b.files)
AddonOutput(a.commands ++ b.commands, a.files ++ b.files, a.newItems ++ b.newItems)
implicit val addonResultMonoid: Monoid[AddonOutput] =
Monoid.instance(empty, combine)