Dont bother implementing browse_existing

It's painful to implement in a performant way and not too useful
This commit is contained in:
Kovid Goyal 2023-09-09 09:11:34 +05:30
parent 9250613998
commit f0cacfdf44
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -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: