Only try to hide powerpoint presentation window for powerpoint 2007 and newer.

This commit is contained in:
Tomas Groth 2015-05-25 12:12:54 +01:00
parent 4266d9cbdf
commit dce6031a9f
2 changed files with 5 additions and 2 deletions

View File

@ -351,7 +351,9 @@ class PowerpointDocument(PresentationDocument):
except AttributeError as e:
log.exception('AttributeError while in start_presentation')
log.exception(e)
if ppt_window and Settings().value('presentations/powerpoint hide in taskbar'):
# Hide the presentation windows icon from the taskbar, if enabled and if powerpoint 2007 or newer
if ppt_window and Settings().value('presentations/powerpoint hide in taskbar') and \
float(self.presentation.Application.Version) >= 12.0:
win32gui.EnumWindows(self._window_enum_callback, size)
# Make sure powerpoint doesn't steal focus, unless we're on a single screen setup
if len(ScreenList().screen_list) > 1:

View File

@ -133,7 +133,8 @@ class PresentationTab(SettingsTab):
translate('PresentationPlugin.PresentationTab',
'Let PowerPoint control the size and position of the presentation window.'))
self.ppt_hide_check_box.setText(
translate('PresentationPlugin.PresentationTab', 'Hide PowerPoint presentation windows from the taskbar'))
translate('PresentationPlugin.PresentationTab',
'Hide PowerPoint presentation windows from the taskbar (PowerPoint 2007 and newer)'))
self.pdf_program_check_box.setText(
translate('PresentationPlugin.PresentationTab', 'Use given full path for mudraw or ghostscript binary:'))