|
4 | 4 |
|
5 | 5 | sub init() |
6 | 6 | m.inactivityTimer = m.top.findNode("inactivityTimer") |
7 | | - m.endsAtTimer = m.top.findNode("endsAtTimer") |
8 | | - m.endsAt = m.top.findNode("endsAt") |
| 7 | + m.endsAtTime = m.top.findNode("endsAtTime") |
9 | 8 | m.videoLogo = m.top.findNode("videoLogo") |
10 | 9 | m.videoOfficialRating = m.top.findNode("videoOfficialRating") |
11 | 10 | m.videoTitle = m.top.findNode("videoTitle") |
|
18 | 17 | m.clock = m.top.findNode("clock") |
19 | 18 | m.isFirstRun = true |
20 | 19 |
|
| 20 | + m.clock.observeField("minutes", "setEndsAtText") |
21 | 21 | m.top.observeField("json", "setFields") |
22 | 22 | m.top.observeField("visible", "onVisibleChanged") |
23 | 23 | m.top.observeField("hasFocus", "onFocusChanged") |
|
171 | 171 | date.fromSeconds(date.asSeconds() + endTime) |
172 | 172 | date.toLocalTime() |
173 | 173 |
|
174 | | - m.endsAt.text = tr("Ends at") + " " + formatTime(date) |
| 174 | + m.endsAtTime.text = formatTime(date) |
175 | 175 | end sub |
176 | 176 |
|
177 | 177 | sub setVideoLogoGroup() |
|
310 | 310 | sub onVisibleChanged() |
311 | 311 | if m.top.visible |
312 | 312 | resetFocusToDefaultButton() |
313 | | - m.endsAtTimer.observeField("fire", "setEndsAtText") |
314 | | - m.endsAtTimer.control = "start" |
315 | 313 |
|
316 | 314 | if m.top.playbackState <> "paused" |
317 | 315 | m.inactivityTimer.observeField("fire", "inactiveCheck") |
318 | 316 | m.inactivityTimer.control = "start" |
319 | 317 | end if |
320 | 318 | else |
321 | 319 | m.inactivityTimer.control = "stop" |
322 | | - m.endsAtTimer.control = "stop" |
323 | 320 | m.inactivityTimer.unobserveField("fire") |
324 | | - m.endsAtTimer.unobserveField("fire") |
325 | 321 | end if |
326 | 322 | end sub |
327 | 323 |
|
|
0 commit comments