mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
.
This commit is contained in:
parent
965e4fbe11
commit
deb9321cda
@ -990,17 +990,14 @@ class dialog_setting_game_internal(QWidget):
|
||||
return lists
|
||||
|
||||
def refresh(self):
|
||||
self._timelabel.setText(
|
||||
self.formattime(savehook_new_data[self.exepath]["statistic_playtime"])
|
||||
)
|
||||
__ = gobject.baseobject.querytraceplaytime_v4(self.exepath)
|
||||
_cnt = sum([_[1] - _[0] for _ in __])
|
||||
savehook_new_data[self.exepath]["statistic_playtime"] = _cnt
|
||||
self._timelabel.setText(self.formattime(_cnt))
|
||||
self._wordlabel.setText(
|
||||
str(savehook_new_data[self.exepath]["statistic_wordcount"])
|
||||
)
|
||||
self.chart.setdata(
|
||||
self.split_range_into_days(
|
||||
gobject.baseobject.querytraceplaytime_v4(self.exepath)
|
||||
)
|
||||
)
|
||||
self.chart.setdata(self.split_range_into_days(__))
|
||||
|
||||
def formattime(self, t, usingnotstart=True):
|
||||
t = int(t)
|
||||
|
Loading…
x
Reference in New Issue
Block a user