mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Remove browser.oneModelNotes()
This commit is contained in:
parent
fa81437ad6
commit
fb8194d82a
1 changed files with 0 additions and 15 deletions
|
|
@ -498,21 +498,6 @@ class Browser(QMainWindow):
|
|||
def selectedNotesAsCards(self) -> Sequence[CardId]:
|
||||
return self.table.get_card_ids_from_selected_note_ids()
|
||||
|
||||
def oneModelNotes(self) -> Sequence[NoteId]:
|
||||
sf = self.selected_notes()
|
||||
if not sf:
|
||||
return []
|
||||
mods = self.col.db.scalar(
|
||||
"""
|
||||
select count(distinct mid) from notes
|
||||
where id in %s"""
|
||||
% ids2str(sf)
|
||||
)
|
||||
if mods > 1:
|
||||
showInfo(tr.browsing_please_select_cards_from_only_one())
|
||||
return []
|
||||
return sf
|
||||
|
||||
def onHelp(self) -> None:
|
||||
openHelp(HelpPage.BROWSING)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue