aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/QuickMedia.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp
index 03a4d8a..da22d72 100644
--- a/src/QuickMedia.cpp
+++ b/src/QuickMedia.cpp
@@ -2106,15 +2106,15 @@ namespace QuickMedia {
image_content.clear();
if(download_to_string(new_url, image_content, extra_args, is_tor_enabled(), true) != DownloadResult::OK || image_content.size() <= 255) {
show_notification("QuickMedia", "Failed to download image: " + new_url, Urgency::CRITICAL);
- return false;
+ return true;
}
} else {
show_notification("QuickMedia", "Failed to download image: " + url, Urgency::CRITICAL);
- return false;
+ return true;
}
} else {
show_notification("QuickMedia", "Failed to download image: " + url, Urgency::CRITICAL);
- return false;
+ return true;
}
}
@@ -2122,7 +2122,7 @@ namespace QuickMedia {
if(file_overwrite(image_filepath_tmp, image_content) != 0) {
show_notification("QuickMedia", "Failed to save image to file: " + image_filepath_tmp.data, Urgency::CRITICAL);
- return false;
+ return true;
}
bool rename_immediately = true;
@@ -2158,7 +2158,7 @@ namespace QuickMedia {
if(rename(image_filepath_tmp.data.c_str(), image_filepath.data.c_str()) != 0) {
perror(image_filepath_tmp.data.c_str());
show_notification("QuickMedia", "Failed to save image to file: " + image_filepath.data, Urgency::CRITICAL);
- return false;
+ return true;
}
}