From 89c816a614db4083e80862b631f4b3e44aa17eae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Guido=20G=C3=BCnther?= Date: Wed, 7 Dec 2022 19:26:29 +0100 Subject: [PATCH] emojichooser: Actually disable the recent section The loop sets empty = FALSE when there are emojis but for that to work we need to initialize the value to TRUE initially. Fixes: 7928532bc5c33b2c6a10bae138ebc6dca1843cb0 --- gtk/gtkemojichooser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkemojichooser.c b/gtk/gtkemojichooser.c index 8415ed3eb3..29e3924eb5 100644 --- a/gtk/gtkemojichooser.c +++ b/gtk/gtkemojichooser.c @@ -312,7 +312,7 @@ populate_recent_section (GtkEmojiChooser *chooser) GVariant *variant; GVariant *item; GVariantIter iter; - gboolean empty = FALSE; + gboolean empty = TRUE; variant = g_settings_get_value (chooser->settings, "recent-emoji"); g_variant_iter_init (&iter, variant); -- 2.30.2