mirror of
https://github.com/Syncplay/syncplay
synced 2024-12-15 03:15:17 +00:00
Merge pull request #143 from alby128/master
Prevents App Nap on macOS 10.9+
This commit is contained in:
commit
b97fdde62a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user