forked from openlp/openlp
Minor adjustments
This commit is contained in:
parent
4ca4fa8f23
commit
6421f1d493
@ -26,8 +26,6 @@ import logging
|
||||
import os, subprocess
|
||||
import time
|
||||
import sys
|
||||
|
||||
if os.name == u'nt':
|
||||
import win32api
|
||||
from ctypes import *
|
||||
from ctypes.wintypes import RECT
|
||||
|
@ -31,6 +31,7 @@ from PyQt4 import QtCore, QtGui
|
||||
from openlp.core.lib import Plugin, MediaManagerItem
|
||||
from openlp.plugins.presentations.lib import PresentationMediaItem, \
|
||||
PresentationTab, ImpressController
|
||||
if os.name == u'nt':
|
||||
try:
|
||||
from openlp.plugins.presentations.lib import PowerpointController
|
||||
except:
|
||||
@ -92,6 +93,7 @@ class PresentationPlugin(Plugin):
|
||||
self.registerControllers(u'Impress', openoffice)
|
||||
except:
|
||||
log.exception(u'Failed to set up plugin for Impress')
|
||||
if os.name == u'nt':
|
||||
#Lets see if Powerpoint is required (Default is Not wanted)
|
||||
if int(self.config.get_config(
|
||||
u'Powerpoint', QtCore.Qt.Unchecked)) == QtCore.Qt.Checked:
|
||||
|
Loading…
Reference in New Issue
Block a user