mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Manage tags dialog: If tags are present in the add tags input when OK is clicked, add them automatically, without needing to click the plus button first
This commit is contained in:
parent
741ecc3cce
commit
cf3ca9395e
@ -216,6 +216,8 @@ class TagEditor(QDialog, Ui_TagEditor):
|
||||
collection.model().setFilterFixedString(filter_value or '')
|
||||
|
||||
def accept(self):
|
||||
if self.add_tag_input.text().strip():
|
||||
self.add_tag()
|
||||
self.tags = self._get_applied_tags_box_contents()
|
||||
self.save_state()
|
||||
return QDialog.accept(self)
|
||||
|
Loading…
x
Reference in New Issue
Block a user