mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
Trezor: Disable 'Change Homescreen' if PIL is unavailable
This commit is contained in:
parent
a81e96bce0
commit
7bcc55ae57
1 changed files with 7 additions and 0 deletions
|
@ -515,6 +515,13 @@ class SettingsDialog(WindowModalDialog):
|
||||||
homescreen_change_button = QPushButton(_("Change..."))
|
homescreen_change_button = QPushButton(_("Change..."))
|
||||||
homescreen_clear_button = QPushButton(_("Reset"))
|
homescreen_clear_button = QPushButton(_("Reset"))
|
||||||
homescreen_change_button.clicked.connect(change_homescreen)
|
homescreen_change_button.clicked.connect(change_homescreen)
|
||||||
|
try:
|
||||||
|
import PIL
|
||||||
|
except ImportError:
|
||||||
|
homescreen_change_button.setDisabled(True)
|
||||||
|
homescreen_change_button.setToolTip(
|
||||||
|
_("Required package 'PIL' is not available - Please install it or use the Trezor website instead.")
|
||||||
|
)
|
||||||
homescreen_clear_button.clicked.connect(clear_homescreen)
|
homescreen_clear_button.clicked.connect(clear_homescreen)
|
||||||
homescreen_msg = QLabel(_("You can set the homescreen on your "
|
homescreen_msg = QLabel(_("You can set the homescreen on your "
|
||||||
"device to personalize it. You must "
|
"device to personalize it. You must "
|
||||||
|
|
Loading…
Add table
Reference in a new issue