mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Make UI update faster on TOT change.
Fixes https://github.com/Khopa/dcs_liberation/issues/815
This commit is contained in:
parent
8c5c08d678
commit
646ba94d10
@ -168,6 +168,8 @@ class PackageModel(QAbstractListModel):
|
||||
def set_tot(self, tot: datetime.timedelta) -> None:
|
||||
self.package.time_over_target = tot
|
||||
self.update_tot()
|
||||
# For some reason this is needed to make the UI update quickly.
|
||||
self.layoutChanged.emit()
|
||||
|
||||
def set_asap(self, asap: bool) -> None:
|
||||
self.package.auto_asap = asap
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user