From 34329ff4ca3b8805ef893b3da67735bcaa460edf Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 12 May 2021 22:03:52 +0200 Subject: Allow downloading files on matrix. Also download the file with enter --- src/QuickMedia.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index 3df2973..f8339a0 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -4720,6 +4720,9 @@ namespace QuickMedia { no_video = prev_no_video; redraw = true; return true; + } else if(message_type == MessageType::FILE) { + download_async_gui(selected->url, false, no_video); + return true; } launch_url(selected->url); @@ -4758,7 +4761,7 @@ namespace QuickMedia { if(selected_item_message) { MessageType message_type = selected_item_message->type; - if(!selected->url.empty() && (message_type == MessageType::VIDEO || message_type == MessageType::IMAGE || message_type == MessageType::AUDIO)) { + if(!selected->url.empty() && message_type >= MessageType::IMAGE && message_type <= MessageType::FILE) { download_async_gui(selected->url, false, no_video); return true; } -- cgit v1.2.3