[gnome-software: 7/9] screenshot-image: Ignore GS_DOWNLOAD_ERROR_NOT_MODIFIED
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 7/9] screenshot-image: Ignore GS_DOWNLOAD_ERROR_NOT_MODIFIED
- Date: Fri, 16 Sep 2022 07:41:08 +0000 (UTC)
commit 134dd63a5e180c97067ff009af39230685d4994d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Mon Sep 12 14:10:41 2022 -0300
screenshot-image: Ignore GS_DOWNLOAD_ERROR_NOT_MODIFIED
That means we have the most recent screenshot already, which is
an error that can safely be ignored.
src/gs-screenshot-image.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-screenshot-image.c b/src/gs-screenshot-image.c
index b74c1584f..a2e3bb948 100644
--- a/src/gs-screenshot-image.c
+++ b/src/gs-screenshot-image.c
@@ -609,7 +609,8 @@ gs_screenshot_video_downloaded_cb (GObject *source_object,
g_autoptr(GsScreenshotImage) ssimg = user_data;
g_autoptr(GError) error = NULL;
- if (gs_download_file_finish (ssimg->session, result, &error)) {
+ if (gs_download_file_finish (ssimg->session, result, &error) ||
+ g_error_matches (error, GS_DOWNLOAD_ERROR, GS_DOWNLOAD_ERROR_NOT_MODIFIED)) {
gs_screenshot_image_stop_spinner (ssimg);
as_screenshot_show_image (ssimg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]