More pause/resume fix ups
This commit is contained in:
parent
9ec33795a9
commit
3118c2912f
|
@ -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 \
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue