mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-14 14:12:31 +00:00
add 'event.view.hide/show' commands / events
This commit is contained in:
@@ -220,7 +220,14 @@ ElementDownloadList::receive_change_view(const std::string& name) {
|
||||
return;
|
||||
}
|
||||
|
||||
std::string old_name = view() ? view()->name() : "";
|
||||
if (!old_name.empty())
|
||||
rpc::commands.call_catch("event.view.hide", rpc::make_target(), name,
|
||||
"View hide event action failed: ");
|
||||
set_view(*itr);
|
||||
if (!old_name.empty())
|
||||
rpc::commands.call_catch("event.view.show", rpc::make_target(), old_name,
|
||||
"View show event action failed: ");
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user