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

This commit is contained in:
2026-08-25 17:31:50 +02:00
parent 0c4611024f
commit c50a3bf417
2 changed files with 7 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 { }