move stopped signal into subscription
This commit is contained in:
parent
6152ba102a
commit
ab73f3b9b9
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue