From 265f9f295e58b0a56bc4bba39532896f7aebf731 Mon Sep 17 00:00:00 2001 From: Asmageddon Date: Wed, 30 May 2012 21:54:36 +0200 Subject: [PATCH] Made connection manager handle resizing --- deluge/ui/console/modes/connectionmanager.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deluge/ui/console/modes/connectionmanager.py b/deluge/ui/console/modes/connectionmanager.py index 0b3fcb5e5..25e9f8f90 100644 --- a/deluge/ui/console/modes/connectionmanager.py +++ b/deluge/ui/console/modes/connectionmanager.py @@ -186,6 +186,14 @@ class ConnectionManager(BaseMode): self.popup.refresh() curses.doupdate() + def on_resize(self, *args): + BaseMode.on_resize_norefresh(self, *args) + + if self.popup: + self.popup.handle_resize() + + self.stdscr.erase() + self.refresh() def _doRead(self): # Read the character