From d8276062ba2af861a81ecec4b79df60e06ed5321 Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Tue, 24 Feb 2026 23:20:21 +0100 Subject: [PATCH] Screenshot: Guard against null color --- src/Widgets/Screenshot.vala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Widgets/Screenshot.vala b/src/Widgets/Screenshot.vala index 7da18d851..549fed73d 100644 --- a/src/Widgets/Screenshot.vala +++ b/src/Widgets/Screenshot.vala @@ -50,7 +50,12 @@ public class AppCenter.Screenshot : Granite.Bin { }); } - private void set_accent_color (string color) { + private void set_accent_color (string? color) { + if (color == null) { + /* We automatically use the accent color */ + return; + } + if (providers == null) { providers = new Gee.HashMap (); }