More pause/resume fix ups

This commit is contained in:
Andrew Resch 2007-06-19 03:13:29 +00:00
parent 9ec33795a9
commit 3118c2912f
2 changed files with 3 additions and 1 deletions

View File

@ -472,6 +472,8 @@ class Manager:
deluge_core.resume(unique_ID)
else:
print "Not enough free space to resume this torrent!"
else: #We're using compact allocation so lets just resume
deluge_core.resume(unique_ID)
elif (not self.get_core_torrent_state(unique_ID, efficient)['is_paused']) and \
( (index >= self.get_pref('max_active_torrents') and \

View File

@ -773,7 +773,7 @@ class DelugeGTK:
if not self.torrent_model.iter_is_valid(itr):
itr = None
try:
if self.manager.is_user_paused(self.get_selected_torrent()):
if self.manager.get_torrent_state(self.get_selected_torrent())["is_paused"]:
self.wtree.get_widget("toolbutton_pause").set_stock_id(gtk.STOCK_MEDIA_PLAY)
self.wtree.get_widget("toolbutton_pause").set_label(_("Resume"))
else: