Closed auctumnus closed 1 year ago
I tried getting it to be an enum, but I can't figure out how to get it to serialize the enum value from the config? Otherwise, the other issues are fixed. It should be a pretty simple change to have it not be a string - I have the enum there in the config model and such.
I tried getting it to be an enum, but I can't figure out how to get it to serialize the enum value from the config? Otherwise, the other issues are fixed. It should be a pretty simple change to have it not be a string - I have the enum there in the config model and such.
Removing the question mark from public ScriptRunOnType ? run_on { get; set; default = ScriptRunOnType.RECEIVE; }
should do the trick
Both of those should now be fixed. Thanks for the tip about removing the question mark!
Should be fixed; thanks for spotting these, I hadn't tried building without scripting so I wouldn't have seen these.
No problem! Thank you for helping me through this PR :+1:
Closes #192.
This solution is likely not the most maintainable.
run_action_scripts
duplicates most of the content fromnew_notification
, and requires you to repeat a lot of theNotifyParams
content. Unfortunately, I'm not familiar enough with Vala to know how to fix this. (That is - this is my first time programming in Vala, so please check over all of my work.)