From 5c869f697c4ddae4a2229360d27669e82b5cbcda Mon Sep 17 00:00:00 2001 From: arvidn Date: Wed, 4 Mar 2020 15:07:08 +0100 Subject: [PATCH] add control of queue position in client_test --- examples/client_test.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/examples/client_test.cpp b/examples/client_test.cpp index cb74d17f4..b70dcf823 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1443,6 +1443,16 @@ example alert_masks: else ses.pause(); } + if (c == '[' && h.is_valid()) + { + h.queue_position_up(); + } + + if (c == ']' && h.is_valid()) + { + h.queue_position_down(); + } + // add magnet link if (c == 'm') { @@ -1637,6 +1647,8 @@ TORRENT ACTIONS [r] force reannounce [R] save resume data for all torrents [o] set piece deadlines (sequential dl) [P] toggle auto-managed [k] toggle force-started [W] remove all web seeds + [ move queue position closer to beginning + ] move queue position closer to end DISPLAY OPTIONS left/right arrow keys: select torrent filter