tweak pause/resume all
This commit is contained in:
parent
1c369bce31
commit
34e0a0e839
16
src/core.py
16
src/core.py
|
@ -741,15 +741,17 @@ of HD space! Oops!\nWe had to pause at least one torrent"))
|
||||||
self.apply_prefs_per_torrent(unique_ID)
|
self.apply_prefs_per_torrent(unique_ID)
|
||||||
|
|
||||||
def pause_all(self):
|
def pause_all(self):
|
||||||
self.config.set('max_active_torrents_tmp', \
|
if self.config.set('max_active_torrents') != 0:
|
||||||
self.config.get('max_active_torrents'))
|
self.config.set('max_active_torrents_tmp', \
|
||||||
self.config.set('max_active_torrents', 0)
|
self.config.get('max_active_torrents'))
|
||||||
self.apply_prefs()
|
self.config.set('max_active_torrents', 0)
|
||||||
|
self.apply_prefs()
|
||||||
|
|
||||||
def resume_all(self):
|
def resume_all(self):
|
||||||
self.config.set('max_active_torrents', \
|
if self.config.set('max_active_torrents') == 0:
|
||||||
self.config.get('max_active_torrents_tmp'))
|
self.config.set('max_active_torrents', \
|
||||||
self.apply_prefs()
|
self.config.get('max_active_torrents_tmp'))
|
||||||
|
self.apply_prefs()
|
||||||
|
|
||||||
def move_storage(self, unique_ID, directory):
|
def move_storage(self, unique_ID, directory):
|
||||||
deluge_core.move_storage(unique_ID, directory)
|
deluge_core.move_storage(unique_ID, directory)
|
||||||
|
|
Loading…
Reference in New Issue