Weighing: Add option to opt-out of automatic datetime sync at startup

This commit is contained in:
2026-08-25 18:19:31 +02:00
parent 0c4611024f
commit f450dc35b1
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ namespace Elwig {
foreach (var s in Config.Scales) {
try {
var scale = Scale.FromConfig(s);
if (scale is ICommandScale cmd) {
if (s.SyncTime && scale is ICommandScale cmd) {
try {
await cmd.SetDateAndTime(DateTime.Now);
} catch { }