Skip to content

Commit

Permalink
[DVD]
Browse files Browse the repository at this point in the history
* force show menu
  • Loading branch information
jbleyel committed Jan 12, 2025
1 parent 7af9ed3 commit 72aa974
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/python/Screens/DVD.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ def setTitle(self, title):


class DVDOverlay(Screen):
noSkinReload = True

def __init__(self, session, args=None, height=None):
desktop_size = getDesktop(0).size()
w = desktop_size.width()
Expand Down Expand Up @@ -164,6 +166,8 @@ def __init__(self, session, dvd_device=None, dvd_filelist=None, args=None):
self.currentChapter = 0
self.totalTitles = 0
self.currentTitle = 0
self.firstRun = True
self.firstRunTimer = eTimer()

self.__event_tracker = ServiceEventTracker(screen=self, eventmap={
iPlayableService.evEnd: self.__serviceStopped,
Expand Down Expand Up @@ -362,6 +366,11 @@ def __timeUpdated(self):
print("[DVD] timeUpdated")

def __statePlay(self):
if self.firstRun:
self.firstRun = False
self.firstRunTimer.callback.append(self.enterDVDMenu)
self.firstRunTimer.start(2000, True)
print("[DVD] force MENU after 2 sec")
print("[DVD] statePlay")

def __statePause(self):
Expand Down

0 comments on commit 72aa974

Please sign in to comment.