Merge pull request #143 from alby128/master

Prevents App Nap on macOS 10.9+
This commit is contained in:
Etoh 2017-09-10 19:57:32 +01:00 committed by GitHub
commit b97fdde62a

View File

@ -407,6 +407,9 @@ class ConfigurationGetter(object):
if QCoreApplication.instance() is None:
self.app = QtGui.QApplication(sys.argv)
qt4reactor.install()
if sys.platform.startswith('darwin'):
import appnope
appnope.nope()
except ImportError:
print getMessage("unable-import-gui-error")
self._config['noGui'] = True