From b221e7ac829b7fa2740234d23461baba986cf9d9 Mon Sep 17 00:00:00 2001 From: Marcos Pinto Date: Sat, 24 Nov 2007 04:58:57 +0000 Subject: [PATCH] tweak full hd dialog --- src/core.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/core.py b/src/core.py index 49bfe8763..14d558886 100644 --- a/src/core.py +++ b/src/core.py @@ -544,11 +544,14 @@ class Manager: # We have enough free space, so lets resume this torrent self.resume(unique_ID) else: + nice_need = common.fsize(total_needed) + nice_free = common.fsize(avail) import gtk import dialogs gtk.gdk.threads_enter() - result = dialogs.show_popup_warning(None, _("You're out \ -of HD space! Oops!\nWe had to pause at least one torrent")) + dialogs.show_popup_warning(None, _("There is not enough \ +free disk space to complete your download.") + "\n" + _("Space Needed:") + " " \ ++ nice_need + "\n" + _("Available Space:") + " " + nice_free) gtk.gdk.threads_leave() print "Not enough free space to resume this torrent!" else: #We're using compact allocation so lets just resume @@ -856,7 +859,6 @@ of HD space! Oops!\nWe had to pause at least one torrent")) torrent.save_dir, torrent.compact) except DelugeError, e: - print "Error probably bad torrent" del self.state.torrents[torrent] raise e