LunaEvent: remove quantity when the value is invalid

This commit is contained in:
2026-10-12 22:20:15 +02:00
committed by penguin86
parent 1368c09c58
commit 500d58eb74
@@ -49,6 +49,8 @@ class LunaEvent: Comparable<LunaEvent> {
set(value) {
if (value > 0)
jo.put("quantity", value)
else
jo.remove("quantity")
}
var notes: String
get(): String = jo.optString("notes")