mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 09:58:39 +00:00
tweak pause/resume all
This commit is contained in:
parent
1c369bce31
commit
34e0a0e839
1 changed files with 9 additions and 7 deletions
|
@ -741,12 +741,14 @@ of HD space! Oops!\nWe had to pause at least one torrent"))
|
|||
self.apply_prefs_per_torrent(unique_ID)
|
||||
|
||||
def pause_all(self):
|
||||
if self.config.set('max_active_torrents') != 0:
|
||||
self.config.set('max_active_torrents_tmp', \
|
||||
self.config.get('max_active_torrents'))
|
||||
self.config.set('max_active_torrents', 0)
|
||||
self.apply_prefs()
|
||||
|
||||
def resume_all(self):
|
||||
if self.config.set('max_active_torrents') == 0:
|
||||
self.config.set('max_active_torrents', \
|
||||
self.config.get('max_active_torrents_tmp'))
|
||||
self.apply_prefs()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue