mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6466898e1a
commit
3aa643425e
@ -40,10 +40,8 @@ class SmartdeviceDialog(QDialog, Ui_Dialog):
|
|||||||
self.resize(self.sizeHint())
|
self.resize(self.sizeHint())
|
||||||
|
|
||||||
def toggle_password(self, state):
|
def toggle_password(self, state):
|
||||||
if state == Qt.Unchecked:
|
self.password_box.setEchoMode(QLineEdit.Password if state ==
|
||||||
self.password_box.setEchoMode(QLineEdit.Password)
|
Qt.Unchecked else QLineEdit.Normal)
|
||||||
else:
|
|
||||||
self.password_box.setEchoMode(QLineEdit.Normal)
|
|
||||||
|
|
||||||
def accept(self):
|
def accept(self):
|
||||||
self.device_manager.set_option('smartdevice', 'password',
|
self.device_manager.set_option('smartdevice', 'password',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user