mirror of
https://github.com/Leseratte10/acsm-calibre-plugin.git
synced 2024-12-23 01:34:36 +06:00
Fix eReader auth in Calibre 6
This commit is contained in:
parent
bf4b6367bf
commit
55bea99913
@ -270,9 +270,9 @@ class ConfigWidget(QWidget):
|
|||||||
info_dialog(None, "Authorize eReader", msg, show=True, show_copy_button=False)
|
info_dialog(None, "Authorize eReader", msg, show=True, show_copy_button=False)
|
||||||
|
|
||||||
dialog = QFileDialog()
|
dialog = QFileDialog()
|
||||||
dialog.setFileMode(QFileDialog.Directory)
|
dialog.setFileMode(QFileDialog.FileMode.Directory)
|
||||||
opts = dialog.options()
|
opts = dialog.options()
|
||||||
opts |= QFileDialog.ShowDirsOnly
|
opts |= QFileDialog.Option.ShowDirsOnly
|
||||||
dialog.setOptions(opts)
|
dialog.setOptions(opts)
|
||||||
|
|
||||||
if dialog.exec_():
|
if dialog.exec_():
|
||||||
|
Loading…
Reference in New Issue
Block a user