mirror of
https://github.com/codex-storage/deluge.git
synced 2025-01-28 12:14:49 +00:00
fix typo
This commit is contained in:
parent
7bdf7e9d1e
commit
15983c8901
@ -741,14 +741,14 @@ 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):
|
||||||
if self.config.set('max_active_torrents') != 0:
|
if self.config.get('max_active_torrents') != 0:
|
||||||
self.config.set('max_active_torrents_tmp', \
|
self.config.set('max_active_torrents_tmp', \
|
||||||
self.config.get('max_active_torrents'))
|
self.config.get('max_active_torrents'))
|
||||||
self.config.set('max_active_torrents', 0)
|
self.config.set('max_active_torrents', 0)
|
||||||
self.apply_prefs()
|
self.apply_prefs()
|
||||||
|
|
||||||
def resume_all(self):
|
def resume_all(self):
|
||||||
if self.config.set('max_active_torrents') == 0:
|
if self.config.get('max_active_torrents') == 0:
|
||||||
self.config.set('max_active_torrents', \
|
self.config.set('max_active_torrents', \
|
||||||
self.config.get('max_active_torrents_tmp'))
|
self.config.get('max_active_torrents_tmp'))
|
||||||
self.apply_prefs()
|
self.apply_prefs()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user