diff options
Diffstat (limited to 'ps-event-view_all.patch')
-rw-r--r-- | ps-event-view_all.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ps-event-view_all.patch b/ps-event-view_all.patch new file mode 100644 index 000000000000..6d38109c667d --- /dev/null +++ b/ps-event-view_all.patch @@ -0,0 +1,21 @@ +--- orig-096/src/main.cc 2015-09-03 21:03:30.000000000 +0200 ++++ rtorrent-0.9.6/src/main.cc 2017-04-09 14:47:56.000000000 +0200 +@@ -248,2 +249,5 @@ + (rpc::make_target(), ++ "method.insert = event.view.hide,multi|rlookup|static\n" ++ "method.insert = event.view.show,multi|rlookup|static\n" ++ + "method.insert = event.download.inserted,multi|rlookup|static\n" +--- orig-096/src/ui/element_download_list.cc 2015-09-03 21:03:30.000000000 +0200 ++++ rtorrent-0.9.6/src/ui/element_download_list.cc 2017-04-09 14:51:32.000000000 +0200 +@@ -219,5 +219,10 @@ + } + ++ std::string old_name = view() ? view()->name() : ""; ++ rpc::commands.call_catch("event.view.hide", rpc::make_target(), name, ++ "View hide event action failed: "); + set_view(*itr); ++ rpc::commands.call_catch("event.view.show", rpc::make_target(), old_name, ++ "View show event action failed: "); + } + |