From 3c16cb376669e4ae500d22529b40112c761088c0 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 20 Jul 2021 23:34:30 +0200 Subject: Fix cursor not autohiding sometimes because start of video is not always detected properly --- src/plugins/Matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/Matrix.cpp') diff --git a/src/plugins/Matrix.cpp b/src/plugins/Matrix.cpp index 7439bf6..4d00949 100644 --- a/src/plugins/Matrix.cpp +++ b/src/plugins/Matrix.cpp @@ -3468,7 +3468,7 @@ namespace QuickMedia { } if((int)file_analyzer.get_file_size() > upload_limit) { - err_msg = "File is too large! max upload size on your homeserver is " + std::to_string(upload_limit) + " bytes, the file you tried to upload is " + std::to_string(file_analyzer.get_file_size()) + " bytes"; + err_msg = "File is too large! max upload size on your homeserver is " + std::to_string((double)upload_limit / 1024.0 / 1024.0) + " mb, the file you tried to upload is " + std::to_string((double)file_analyzer.get_file_size() / 1024.0 / 1024.0) + " mb"; return PluginResult::ERR; } -- cgit v1.2.3