bitfocus / companion-module-generic-stopwatch

MIT License
2 stars 3 forks source link

Changing precision resets state partially #13

Open astellingwerf opened 1 month ago

astellingwerf commented 1 month ago

When changing the precision configuration, whether the stopwatch was running is maintained (the timer property), but the watch is reset. That's inconsistent at least, but one might argue what's the correct behavior.

My expectation would be that the watch would not be reset if we're just changing the precision.

josephdadams commented 1 month ago

That’s because the whole module restarts when you update the module config (like changing precision)

astellingwerf commented 1 month ago

Well, does it really? The clock keeps ticking, when you start the clock and then change precision.