Browse Source
Merge pull request #3710 from nothingmuch/conditionally_share_opengl_contexts
QT: Only set "AA_ShareOpenGLContexts" if available
3.1
ghost43
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
gui/qt/__init__.py
|
|
@ -92,7 +92,8 @@ class ElectrumGui: |
|
|
|
#network.add_jobs([DebugMem([Abstract_Wallet, SPV, Synchronizer, |
|
|
|
# ElectrumWindow], interval=5)]) |
|
|
|
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_X11InitThreads) |
|
|
|
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts) |
|
|
|
if hasattr(QtCore.Qt, "AA_ShareOpenGLContexts"): |
|
|
|
QtCore.QCoreApplication.setAttribute(QtCore.Qt.AA_ShareOpenGLContexts) |
|
|
|
self.config = config |
|
|
|
self.daemon = daemon |
|
|
|
self.plugins = plugins |
|
|
|