Fix the bug where the time zone cannot be set during initialstart.

This commit is contained in:
F_Chao Fengchao 2024-06-07 13:47:58 +02:00 committed by Fushan Wen
parent 550cee15bd
commit 2d915d3037

View file

@ -94,7 +94,7 @@ Item {
checked: Time.TimeUtil.currentTimeZone === timeZoneId
onCheckedChanged: {
if (checked && timeZoneId !== Time.TimeUtil.currentTimeZone) {
Time.TimeUtil.currentTimeZone = model.timeZoneId;
Time.TimeUtil.currentTimeZone = timeZoneId;
checked = Qt.binding(() => Time.TimeUtil.currentTimeZone === timeZoneId);
}
}