mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 04:02:30 +00:00
* Added 'system.method.get', 'ui.current_view.set' and 'group.insert'
commands. * Enabled different ratio settings for different groups of downloads. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1079 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+9
-1
@@ -394,6 +394,13 @@ cmd_view_size_not_visible(__UNUSED rpc::target_type target, const torrent::Objec
|
||||
return (*control->view_manager()->find_throw(rawArgs.as_string()))->size_not_visible();
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
cmd_ui_set_view(__UNUSED rpc::target_type target, const torrent::Object& rawArgs) {
|
||||
control->ui()->download_list()->set_current_view(rawArgs.as_string());
|
||||
|
||||
return torrent::Object();
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
cmd_ui_unfocus_download(core::Download* download, const torrent::Object& rawArgs) {
|
||||
control->ui()->download_list()->unfocus_download(download);
|
||||
@@ -451,7 +458,8 @@ initialize_command_ui() {
|
||||
// Commands that affect the default rtorrent UI.
|
||||
|
||||
// ADD_ANY_NONE("ui.focus", rak::ptr_fn(&cmd_ui_focus));
|
||||
CMD_D_ANY("ui.unfocus_download", rak::ptr_fn(&cmd_ui_unfocus_download));
|
||||
CMD_D_ANY("ui.unfocus_download", rak::ptr_fn(&cmd_ui_unfocus_download));
|
||||
CMD_N_STRING("ui.current_view.set", rak::ptr_fn(&cmd_ui_set_view));
|
||||
|
||||
// Move.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user