mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-19 02:29:58 +00:00
fixed bug 433: Timer.setLivePlayDelayInMillis updated to now-delay in play instead of in live mode
This commit is contained in:
1 parent
008b7d89ac
commit
6aedfcd21c
1 file changed
+5
-3
@@ -258,9 +258,11 @@ public class Timer {
|
||||
}
|
||||
|
||||
public void setLivePlayDelayInMillis(long delayInMilliseconds) {
|
||||
this.livePlayDelayInMillis = delayInMilliseconds;
|
||||
if (getPlayState() == PlayStates.Playing) {
|
||||
setTime(new Date().getTime() - delayInMilliseconds);
|
||||
if (this.livePlayDelayInMillis != delayInMilliseconds) {
|
||||
this.livePlayDelayInMillis = delayInMilliseconds;
|
||||
if (getPlayMode() == PlayModes.Live) {
|
||||
setTime(new Date().getTime() - delayInMilliseconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user