Fix issue where cannot resume torrent after doing a 'Pause All'
This commit is contained in:
parent
e08c51e10c
commit
22c9fffad8
|
@ -354,12 +354,14 @@ class Core(component.Component):
|
|||
@export
|
||||
def pause_all_torrents(self):
|
||||
"""Pause all torrents in the session"""
|
||||
self.session.pause()
|
||||
for torrent in self.torrentmanager.torrents.values():
|
||||
torrent.pause()
|
||||
|
||||
@export
|
||||
def resume_all_torrents(self):
|
||||
"""Resume all torrents in the session"""
|
||||
self.session.resume()
|
||||
for torrent in self.torrentmanager.torrents.values():
|
||||
torrent.resume()
|
||||
component.get("EventManager").emit(SessionResumedEvent())
|
||||
|
||||
@export
|
||||
|
|
Loading…
Reference in New Issue