mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-06 06:09:22 +00:00
* Removed old non-download set/get functions from VariableMap.
* Added forgotten command_download.cc file. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@900 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -232,7 +232,7 @@ DownloadList::receive_view_input(Input type) {
|
||||
case INPUT_CHANGE_DIRECTORY:
|
||||
title = "change_directory";
|
||||
|
||||
input->str() = control->variable()->get_string("get_directory");
|
||||
input->str() = control->variable()->call_command_string("get_directory");
|
||||
input->set_pos(input->str().length());
|
||||
|
||||
break;
|
||||
|
||||
+5
-5
@@ -126,7 +126,7 @@ void
|
||||
Root::setup_keys() {
|
||||
m_control->input()->push_back(&m_bindings);
|
||||
|
||||
const std::string& keyLayout = control->variable()->get_string("get_key_layout");
|
||||
const std::string& keyLayout = control->variable()->call_command_string("get_key_layout");
|
||||
|
||||
if (strcasecmp(keyLayout.c_str(), "azerty") == 0) {
|
||||
m_bindings['q'] = sigc::bind(sigc::mem_fun(*this, &Root::adjust_up_throttle), 1);
|
||||
@@ -187,14 +187,14 @@ Root::set_down_throttle(unsigned int throttle) {
|
||||
|
||||
torrent::set_down_throttle(throttle * 1024);
|
||||
|
||||
int64_t div = control->variable()->get_value("get_max_downloads_div");
|
||||
int64_t div = control->variable()->call_command_value("get_max_downloads_div");
|
||||
|
||||
if (throttle == 0 || div <= 0) {
|
||||
torrent::set_max_download_unchoked(m_maxDownloadsGlobal);
|
||||
return;
|
||||
}
|
||||
|
||||
throttle /= control->variable()->get_value("get_max_downloads_div");
|
||||
throttle /= control->variable()->call_command_value("get_max_downloads_div");
|
||||
|
||||
unsigned int maxUnchoked;
|
||||
|
||||
@@ -216,14 +216,14 @@ Root::set_up_throttle(unsigned int throttle) {
|
||||
|
||||
torrent::set_up_throttle(throttle * 1024);
|
||||
|
||||
int64_t div = control->variable()->get_value("get_max_uploads_div");
|
||||
int64_t div = control->variable()->call_command_value("get_max_uploads_div");
|
||||
|
||||
if (throttle == 0 || div <= 0) {
|
||||
torrent::set_max_unchoked(m_maxUploadsGlobal);
|
||||
return;
|
||||
}
|
||||
|
||||
throttle /= control->variable()->get_value("get_max_uploads_div");
|
||||
throttle /= control->variable()->call_command_value("get_max_uploads_div");
|
||||
|
||||
unsigned int maxUnchoked;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user