mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 12:12:31 +00:00
* Made the signal in View trigger using a task, thus avoiding bad
recursions and wrongly orderer commands. This should fix some problems with hash checking returning errno 0. * More changes to View usage. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1048 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
+17
-1
@@ -392,6 +392,20 @@ cmd_view_filter_download(core::Download* download, const torrent::Object& rawArg
|
||||
return torrent::Object();
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
cmd_view_set_visible(core::Download* download, const torrent::Object& rawArgs) {
|
||||
(*control->view_manager()->find_throw(rawArgs.as_string()))->set_visible(download);
|
||||
|
||||
return torrent::Object();
|
||||
}
|
||||
|
||||
torrent::Object
|
||||
cmd_view_set_not_visible(core::Download* download, const torrent::Object& rawArgs) {
|
||||
(*control->view_manager()->find_throw(rawArgs.as_string()))->set_not_visible(download);
|
||||
|
||||
return torrent::Object();
|
||||
}
|
||||
|
||||
void
|
||||
initialize_command_ui() {
|
||||
ADD_VARIABLE_STRING("key_layout", "qwerty");
|
||||
@@ -412,7 +426,9 @@ initialize_command_ui() {
|
||||
|
||||
// Cleanup and add . to view.
|
||||
|
||||
CMD_D_STRING("view.filter_download", rak::ptr_fn(&cmd_view_filter_download));
|
||||
CMD_D_STRING("view.filter_download", rak::ptr_fn(&cmd_view_filter_download));
|
||||
CMD_D_STRING("view.set_visible", rak::ptr_fn(&cmd_view_set_visible));
|
||||
CMD_D_STRING("view.set_not_visible", rak::ptr_fn(&cmd_view_set_not_visible));
|
||||
|
||||
// Commands that affect the default rtorrent UI.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user