:fullscreen, enter video fullscreen, :fullscreen, exit video fullscreen should not go into video fullscreen

This commit is contained in:
Christian Helbling 2017-07-06 15:35:52 +02:00
parent 361251bf53
commit d179450c29

View File

@ -488,7 +488,7 @@ class MainWindow(QWidget):
if on:
self.state_before_fullscreen = self.windowState()
self.showFullScreen()
else:
elif self.isFullScreen():
self.setWindowState(self.state_before_fullscreen)
log.misc.debug('on: {}, state before fullscreen: {}'.format(
on, debug.qflags_key(Qt, self.state_before_fullscreen)))