From 5bc4cb756c300795144edd8e1ea656a57c880f5d Mon Sep 17 00:00:00 2001 From: hut Date: Tue, 19 Feb 2013 16:08:54 +0100 Subject: widgets/pager: simpler Pager.destroy() --- ranger/gui/widgets/pager.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py index 93f77a08..d6c35a3b 100644 --- a/ranger/gui/widgets/pager.py +++ b/ranger/gui/widgets/pager.py @@ -53,8 +53,7 @@ class Pager(Widget): self.source.close() def destroy(self): - if self.image_drawn: - img_display.clear(self.x, self.y, self.wid, self.hei) + self.clear_image(force=True) def finalize(self): self.fm.ui.win.move(self.y, self.x) -- cgit 1.4.1-2-gfad0