From 5f888facebdc6a7e9d41421b069d97c55d007ddb Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 2 Feb 2011 13:11:15 +0100 Subject: [PATCH] handle resize in torrentdetail --- deluge/ui/console/modes/torrentdetail.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deluge/ui/console/modes/torrentdetail.py b/deluge/ui/console/modes/torrentdetail.py index 06204670b..a337a486c 100644 --- a/deluge/ui/console/modes/torrentdetail.py +++ b/deluge/ui/console/modes/torrentdetail.py @@ -63,6 +63,7 @@ class TorrentDetail(BaseMode, component.Component): self.alltorrentmode = alltorrentmode self.torrentid = torrentid self.torrent_state = None + self.popup = None self._status_keys = ["files", "name","state","download_payload_rate","upload_payload_rate", "progress","eta","all_time_download","total_uploaded", "ratio", "num_seeds","total_seeds","num_peers","total_peers", "active_time", @@ -263,6 +264,13 @@ class TorrentDetail(BaseMode, component.Component): return (off,idx) + def on_resize(self, *args): + BaseMode.on_resize_norefresh(self, *args) + self._update_columns() + if self.popup: + self.popup.handle_resize() + self.refresh() + def refresh(self,lines=None): # Update the status bars self.stdscr.clear()