From 6e03382f1ff02ac8da3d3ed3b131e0008da75b8d Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Fri, 24 May 2019 21:21:19 +0200 Subject: [PATCH] Reenable setting slidecontroller index when openlp is not in focus. --- openlp/plugins/presentations/lib/impresscontroller.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openlp/plugins/presentations/lib/impresscontroller.py b/openlp/plugins/presentations/lib/impresscontroller.py index fb5254a05..426e8f2fc 100644 --- a/openlp/plugins/presentations/lib/impresscontroller.py +++ b/openlp/plugins/presentations/lib/impresscontroller.py @@ -607,9 +607,9 @@ class SlideShowListener(SlideShowListenerImport): Notify that the last animation from the main sequence of the current slide has ended. """ log.debug('LibreOffice SlideShowListener event: slideAnimationsEnded') - # if not Registry().get('main_window').isActiveWindow(): - # log.debug('main window is not in focus - should update slidecontroller') - # Registry().execute('slidecontroller_live_change', self.document.control.getCurrentSlideIndex() + 1) + if not Registry().get('main_window').isActiveWindow(): + log.debug('main window is not in focus - should update slidecontroller') + Registry().execute('slidecontroller_live_change', self.document.control.getCurrentSlideIndex() + 1) def slideEnded(self, reverse): """