mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Dont bother implementing browse_existing
It's painful to implement in a performant way and not too useful
This commit is contained in:
parent
9250613998
commit
f0cacfdf44
@ -112,9 +112,6 @@ class AskImage(Dialog):
|
||||
self.add_file_button = b = QPushButton(QIcon.ic('document_open.png'), _('Choose image &file'), self)
|
||||
b.clicked.connect(self.add_file)
|
||||
hb.addWidget(b)
|
||||
self.existing_button = b = QPushButton(QIcon.ic('view-image.png'), _('Browse &existing'), self)
|
||||
b.clicked.connect(self.browse_existing)
|
||||
hb.addWidget(b)
|
||||
self.paste_button = b = QPushButton(QIcon.ic('edit-paste.png'), _('&Paste from clipboard'), self)
|
||||
b.clicked.connect(self.paste_image)
|
||||
hb.addWidget(b)
|
||||
@ -131,9 +128,6 @@ class AskImage(Dialog):
|
||||
self.name_edit.setText(ir.name)
|
||||
self.current_digest = digest
|
||||
|
||||
def browse_existing(self):
|
||||
raise NotImplementedError('TODO: Implement me')
|
||||
|
||||
def add_file(self):
|
||||
files = choose_images(self, 'choose-image-for-notes', _('Choose image'), formats=IMAGE_EXTENSIONS)
|
||||
if files:
|
||||
|
Loading…
x
Reference in New Issue
Block a user