Remove browser.oneModelNotes()
This commit is contained in:
parent
0dca3ef548
commit
ff76d50338
@ -498,21 +498,6 @@ class Browser(QMainWindow):
|
|||||||
def selectedNotesAsCards(self) -> Sequence[CardId]:
|
def selectedNotesAsCards(self) -> Sequence[CardId]:
|
||||||
return self.table.get_card_ids_from_selected_note_ids()
|
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:
|
def onHelp(self) -> None:
|
||||||
openHelp(HelpPage.BROWSING)
|
openHelp(HelpPage.BROWSING)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user