aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/util
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2026-03-29 13:18:45 +0200
committerfiaxh <git@lightrise.org>2026-03-29 13:22:11 +0200
commit93c4a59869b34aebea6f82fd7ba955851bdeabd7 (patch)
treea6f58a0365f5dee86d69cde53a734f13e50a4f99 /main/src/ui/util
parentcba3bff70884286c1e964d31f3091f2bb7a32dd5 (diff)
Fix critical when setting (sub)title
Diffstat (limited to 'main/src/ui/util')
-rw-r--r--main/src/ui/util/preference_group.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/ui/util/preference_group.vala b/main/src/ui/util/preference_group.vala
index ab2229f8..c2b96f41 100644
--- a/main/src/ui/util/preference_group.vala
+++ b/main/src/ui/util/preference_group.vala
@@ -98,7 +98,7 @@ namespace Dino.Ui.Util {
var toggle_view_model = preferences_row as ViewModel.PreferencesRow.Toggle;
if (toggle_view_model != null) {
- var view = new Adw.ActionRow() { title = toggle_view_model.title, subtitle = toggle_view_model.subtitle };
+ var view = new Adw.ActionRow() { title = toggle_view_model.title, subtitle = toggle_view_model.subtitle ?? "" };
var toggle = new Switch() { valign = Align.CENTER };
view.activatable_widget = toggle;
view.add_suffix(toggle);