bugfix
This commit is contained in:
parent
807d8458f8
commit
102475cfe5
@ -35,14 +35,10 @@ class WidgetReady(EventDispatcher):
|
|||||||
if not window:
|
if not window:
|
||||||
Logger.warning('VideoPlayer: Cannot switch to fullscreen, '
|
Logger.warning('VideoPlayer: Cannot switch to fullscreen, '
|
||||||
'window not found.')
|
'window not found.')
|
||||||
if value:
|
|
||||||
self.fullscreen = False
|
|
||||||
return
|
return
|
||||||
if not self.parent:
|
if not self.parent:
|
||||||
Logger.warning('VideoPlayer: Cannot switch to fullscreen, '
|
Logger.warning('VideoPlayer: Cannot switch to fullscreen, '
|
||||||
'no parent.')
|
'no parent.')
|
||||||
if value:
|
|
||||||
self.fullscreen = False
|
|
||||||
return
|
return
|
||||||
|
|
||||||
if value:
|
if value:
|
||||||
@ -73,8 +69,8 @@ class WidgetReady(EventDispatcher):
|
|||||||
self.size_hint = (1, 1)
|
self.size_hint = (1, 1)
|
||||||
else:
|
else:
|
||||||
Window.fullscreen = False
|
Window.fullscreen = False
|
||||||
if platform in desktopOSs:
|
#if platform in desktopOSs:
|
||||||
Window.restore()
|
# Window.restore()
|
||||||
state = self._fullscreen_state
|
state = self._fullscreen_state
|
||||||
window.remove_widget(self)
|
window.remove_widget(self)
|
||||||
for child in state['window_children']:
|
for child in state['window_children']:
|
||||||
|
Loading…
Reference in New Issue
Block a user