mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-28 07:51:27 +00:00
Write out the config file to <= 4.7 QT when QT > 4.7 can't be loaded.
This commit is contained in:
parent
3252b5ae4e
commit
0d229383aa
1 changed files with 4 additions and 1 deletions
5
electrum
5
electrum
|
@ -150,6 +150,7 @@ if __name__ == '__main__':
|
||||||
except ImportError:
|
except ImportError:
|
||||||
import electrum.gui_qt as gui
|
import electrum.gui_qt as gui
|
||||||
elif options.gui == 'lite':
|
elif options.gui == 'lite':
|
||||||
|
print 'ohhai'
|
||||||
# Let's do some dep checking and handle missing ones gracefully
|
# Let's do some dep checking and handle missing ones gracefully
|
||||||
try:
|
try:
|
||||||
from PyQt4.QtCore import *
|
from PyQt4.QtCore import *
|
||||||
|
@ -166,8 +167,10 @@ if __name__ == '__main__':
|
||||||
error_message = QErrorMessage()
|
error_message = QErrorMessage()
|
||||||
error_message.setFixedSize(350,200)
|
error_message.setFixedSize(350,200)
|
||||||
error_message.showMessage("<p>Sorry, the Electrum 'Lite GUI' requires Qt >= 4.7 to run. The pro GUI will be started instead.</p><p>Check your distributions packages for upgrades.</p>")
|
error_message.showMessage("<p>Sorry, the Electrum 'Lite GUI' requires Qt >= 4.7 to run. The pro GUI will be started instead.</p><p>Check your distributions packages for upgrades.</p>")
|
||||||
|
|
||||||
simple_config.config["gui"] = "qt"
|
simple_config.config["gui"] = "qt"
|
||||||
simple_config.save_config
|
simple_config.save_config()
|
||||||
|
|
||||||
app.exec_()
|
app.exec_()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Reference in a new issue