Skip to content

Commit a2f2425

Browse files
committed
fix: Don't serialize computed properties of TrainingSetup
1 parent fee5ea6 commit a2f2425

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/TrainingSetup.vala

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,18 @@ namespace ExerciseTimer {
7474
return null;
7575
}
7676

77+
public override (unowned GLib.ParamSpec)[] list_properties () {
78+
GLib.Type type = this.get_type ();
79+
GLib.ObjectClass ocl = (GLib.ObjectClass) type.class_ref ();
80+
return new (unowned GLib.ParamSpec)[] {
81+
ocl.find_property ("Title"),
82+
ocl.find_property ("Sets"),
83+
ocl.find_property ("PreparationSec"),
84+
ocl.find_property ("ExerciseSec"),
85+
ocl.find_property ("RestSec"),
86+
};
87+
}
88+
7789
public int TotalTimeSec {
7890
get {
7991
return PreparationSec + Sets * (ExerciseSec + RestSec) - RestSec;

0 commit comments

Comments
 (0)