Exemple #1
0
 def on_menuitem_remove_activate(self, data=None):
     log.debug("on_menuitem_remove_activate")
     torrent_ids = component.get("TorrentView").get_selected_torrents()
     if torrent_ids:
         from removetorrentdialog import RemoveTorrentDialog
         RemoveTorrentDialog(torrent_ids).run()
Exemple #2
0
 def keypress_Delete(self, event):
     log.debug("keypress_Delete")
     torrents = self.get_selected_torrents()
     if torrents:
         RemoveTorrentDialog(torrents).run()