mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-10 08:09:21 +00:00
Merge pyroscope and chros73 suggestion: Command name uniformisation.
ui.console.log.tempfilter => view.temp_filter.log
This commit is contained in:
+1
-1
@@ -606,7 +606,7 @@ initialize_command_ui() {
|
||||
CMD2_ANY_STRING("ui.current_view.set", std::bind(&cmd_ui_set_view, std::placeholders::_2));
|
||||
|
||||
CMD2_VAR_STRING("view.temp_filter.excluded", "default,started,stopped");
|
||||
CMD2_VAR_BOOL ("ui.console.log.tempfilter", 0);
|
||||
CMD2_VAR_BOOL ("view.temp_filter.log", 0);
|
||||
|
||||
// TODO: Add 'option_string' for rtorrent-specific options.
|
||||
CMD2_VAR_STRING("ui.torrent_list.layout", "full");
|
||||
|
||||
@@ -348,7 +348,7 @@ DownloadList::receive_exit_input(Input type) {
|
||||
|
||||
case INPUT_FILTER:
|
||||
if (input->str().empty()) {
|
||||
if (rpc::call_command_value("ui.console.log.tempfilter"))
|
||||
if (rpc::call_command_value("view.temp_filter.log"))
|
||||
control->core()->push_log_std("Clear temporary filter on '" + current_view()->name() + "' view.");
|
||||
current_view()->set_temp_filter(torrent::Object());
|
||||
current_view()->filter();
|
||||
@@ -361,7 +361,7 @@ DownloadList::receive_exit_input(Input type) {
|
||||
pattern = ".*" + pattern;
|
||||
std::transform(pattern.begin(), pattern.end(), pattern.begin(), ::tolower);
|
||||
std::string tempFilter = "match={d.name=," + pattern + "}";
|
||||
if (rpc::call_command_value("ui.console.log.tempfilter"))
|
||||
if (rpc::call_command_value("view.temp_filter.log"))
|
||||
control->core()->push_log_std("Temporary filter on '" + current_view()->name() + "' view: " + pattern);
|
||||
current_view()->set_temp_filter(tempFilter);
|
||||
current_view()->filter();
|
||||
|
||||
Reference in New Issue
Block a user