[shotwell/shotwell-0.30] Also set dark wallpaper uri
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [shotwell/shotwell-0.30] Also set dark wallpaper uri
- Date: Mon, 25 Apr 2022 12:24:46 +0000 (UTC)
commit 4c0dd0949d5e9423e6ea21159b19953853373b33
Author: Jens Georg <mail jensge org>
Date: Mon Apr 4 21:58:55 2022 +0200
Also set dark wallpaper uri
Work-around non-working wallpaper in dark mode
Fixes lp#1965812
src/config/GSettingsEngine.vala | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/config/GSettingsEngine.vala b/src/config/GSettingsEngine.vala
index f8f2ef08..53c4e3f6 100644
--- a/src/config/GSettingsEngine.vala
+++ b/src/config/GSettingsEngine.vala
@@ -357,8 +357,12 @@ public class GSettingsConfigurationEngine : ConfigurationEngine, GLib.Object {
converted_val = "file://" + val;
}
- if (p == ConfigurableProperty.DESKTOP_BACKGROUND_FILE) {
- set_gs_string(schema_names[p], key_names[p] + "-dark", converted_val);
+ try {
+ if (p == ConfigurableProperty.DESKTOP_BACKGROUND_FILE) {
+ set_gs_string(schema_names[p], key_names[p] + "-dark", converted_val);
+ }
+ } catch (Error error) {
+ // Do nothing, the setting does not exist (yet)
}
set_gs_string(schema_names[p], key_names[p], converted_val);
property_changed(p);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]