Add current-filter-to-filtered-deck action
This commit is contained in:
parent
52867dfa6c
commit
011b562038
@ -36,6 +36,7 @@ browsing-enter-tags-to-add = Enter tags to add:
|
||||
browsing-enter-tags-to-delete = Enter tags to delete:
|
||||
browsing-filter = Filter...
|
||||
browsing-filtered = (filtered)
|
||||
browsing-filter-to-deck = Current Filter to Filtered Deck...
|
||||
browsing-find = <b>Find</b>:
|
||||
browsing-find-and-replace = Find and Replace
|
||||
browsing-find-duplicates = Find Duplicates
|
||||
|
@ -476,6 +476,7 @@ class Browser(QMainWindow):
|
||||
qconnect(f.actionSelectNotes.triggered, self.selectNotes)
|
||||
if not isMac:
|
||||
f.actionClose.setVisible(False)
|
||||
qconnect(f.actionFilterToDeck.triggered, self.filterToDeck)
|
||||
# notes
|
||||
qconnect(f.actionAdd.triggered, self.mw.onAddCard)
|
||||
qconnect(f.actionAdd_Tags.triggered, lambda: self.addTags())
|
||||
@ -1158,6 +1159,9 @@ where id in %s"""
|
||||
if nids:
|
||||
ChangeModel(self, nids)
|
||||
|
||||
def filterToDeck(self):
|
||||
aqt.dialogs.open("DynDeckConfDialog", self.mw, self.form.searchEdit.lineEdit().text())
|
||||
|
||||
# Preview
|
||||
######################################################################
|
||||
|
||||
|
@ -230,6 +230,8 @@
|
||||
<addaction name="actionInvertSelection"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionClose"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionFilterToDeck"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuJump">
|
||||
<property name="title">
|
||||
@ -583,6 +585,14 @@
|
||||
<string notr="true">Ctrl+Shift+E</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFilterToDeck">
|
||||
<property name="text">
|
||||
<string>BROWSING_FILTER_TO_DECK</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string notr="true">Ctrl+Q</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="icons.qrc"/>
|
||||
|
Loading…
Reference in New Issue
Block a user