mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Fix the bug where the time zone cannot be set during initialstart.
This commit is contained in:
parent
550cee15bd
commit
2d915d3037
1 changed files with 1 additions and 1 deletions
|
|
@ -94,7 +94,7 @@ Item {
|
||||||
checked: Time.TimeUtil.currentTimeZone === timeZoneId
|
checked: Time.TimeUtil.currentTimeZone === timeZoneId
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
if (checked && timeZoneId !== Time.TimeUtil.currentTimeZone) {
|
if (checked && timeZoneId !== Time.TimeUtil.currentTimeZone) {
|
||||||
Time.TimeUtil.currentTimeZone = model.timeZoneId;
|
Time.TimeUtil.currentTimeZone = timeZoneId;
|
||||||
checked = Qt.binding(() => Time.TimeUtil.currentTimeZone === timeZoneId);
|
checked = Qt.binding(() => Time.TimeUtil.currentTimeZone === timeZoneId);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue