move stopped signal into subscription

This commit is contained in:
Rowan 2025-07-16 23:37:11 -04:00
parent 6152ba102a
commit ab73f3b9b9

View file

@ -45,7 +45,6 @@ namespace KitsuneCafe
private readonly ReactiveProperty<bool> started = new(false);
private readonly ReactiveProperty<bool> paused = new(false);
private Observable<bool> stopped => started.Where(KMath.Not).Skip(1);
public bool Started => started.Value;
public bool Paused => paused.Value;
@ -68,6 +67,8 @@ namespace KitsuneCafe
paused.Compose(WhereTrue).Select(_ => false)
);
var stopped = started.Where(KMath.Not).Skip(1);
var timeProvider = GetTimeProvider(timing, timeKind);
var totalDuration = GetDuration();