tweak set_user_pause

This commit is contained in:
Marcos Pinto 2007-11-18 23:45:16 +00:00
parent 423cce7c56
commit 9b88b8d61f
1 changed files with 7 additions and 0 deletions

View File

@ -704,6 +704,13 @@ of HD space! Oops!\nWe had to pause at least one torrent"))
# Miscellaneous minor functions # Miscellaneous minor functions
def set_user_pause(self, unique_ID, new_value, enforce_queue=True): def set_user_pause(self, unique_ID, new_value, enforce_queue=True):
if not self.config.get("max_active_torrents"):
try:
self.config.set("max_active_torrents", \
self.config.get("max_active_torrents_tmp")
except:
pass
self.apply_prefs()
self.unique_IDs[unique_ID].user_paused = new_value self.unique_IDs[unique_ID].user_paused = new_value
if enforce_queue: if enforce_queue:
self.apply_queue() self.apply_queue()