mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-07 14:49:21 +00:00
* Added dummy scheduler commands.
* Add/remove downloads from the 'active' view on resume/pause. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1051 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -307,6 +307,8 @@ DownloadList::resume(Download* download, int flags) {
|
||||
if (download->download()->is_active())
|
||||
return;
|
||||
|
||||
rpc::parse_command_single(rpc::make_target(download), "view.set_visible=active");
|
||||
|
||||
// We need to make sure the flags aren't reset if someone decideds
|
||||
// to call resume() while it is hashing, etc.
|
||||
if (download->resume_flags() == ~uint32_t())
|
||||
@@ -374,6 +376,8 @@ DownloadList::pause(Download* download, int flags) {
|
||||
|
||||
download->set_resume_flags(~uint32_t());
|
||||
|
||||
rpc::parse_command_single(rpc::make_target(download), "view.set_not_visible=active");
|
||||
|
||||
// Always clear hashing on pause. When a hashing request is added,
|
||||
// it should have cleared the hash resume data.
|
||||
if (rpc::call_command_value("d.get_hashing", rpc::make_target(download)) != Download::variable_hashing_stopped) {
|
||||
|
||||
Reference in New Issue
Block a user