kuuko pushed a commit to branch master. http://git.enlightenment.org/apps/epour.git/commit/?id=0333f78cbbc213afa3d05ef545172bb7b541b10e
commit 0333f78cbbc213afa3d05ef545172bb7b541b10e Author: Kai Huuhko <[email protected]> Date: Wed Aug 13 04:21:23 2014 +0300 Fix torrent menu item force dht announce and add shortcut for files --- epour/gui/__init__.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/epour/gui/__init__.py b/epour/gui/__init__.py index 21478af..0a0c955 100644 --- a/epour/gui/__init__.py +++ b/epour/gui/__init__.py @@ -206,7 +206,7 @@ class MainInterface(object): ihash = str(h.info_hash()) if not ihash in self.torrentitems: - log.debug("%s not in list", str(ihash)) + log.debug("%s state changed but not in list", str(ihash)) return self.update_icon(h) @@ -541,7 +541,7 @@ class ItemMenu(Menu): ) self.item_add( None, "Force DHT reannounce", None, - lambda x, y: h.force_dht_reannounce() + lambda x, y: h.force_dht_announce() ) it = self.item_add( None, "Scrape tracker", None, @@ -569,11 +569,19 @@ class ItemMenu(Menu): "connecting to peers again, as normal." ) self.item_separator_add(None) - self.item_add( + it = self.item_add( None, "Torrent properties", None, self.torrent_props_cb, h ) + def files_cb(menu, it, h): + from TorrentProps import TorrentFiles + TorrentFiles(h) + self.item_add( + it, "Files", None, + files_cb, h + ) + self.move(*parent.evas.pointer_canvas_xy_get()) self.show() --
