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: 7928532bc5
This commit is contained in:
Guido Günther 2022-12-07 19:26:29 +01:00
parent a9c9678e1f
commit 89c816a614

View File

@ -312,7 +312,7 @@ populate_recent_section (GtkEmojiChooser *chooser)
GVariant *variant; GVariant *variant;
GVariant *item; GVariant *item;
GVariantIter iter; GVariantIter iter;
gboolean empty = FALSE; gboolean empty = TRUE;
variant = g_settings_get_value (chooser->settings, "recent-emoji"); variant = g_settings_get_value (chooser->settings, "recent-emoji");
g_variant_iter_init (&iter, variant); g_variant_iter_init (&iter, variant);