Commit 8ecd81d5 authored by Dorota Czaplejewicz's avatar Dorota Czaplejewicz

settings: Fall back to "us" layout when no file found

parent 8f71b010
Pipeline #5186 passed with stage
in 1 minute and 23 seconds
......@@ -198,7 +198,13 @@ eekboard_context_service_real_create_keyboard (EekboardContextService *self,
g_warning ("can't create keyboard %s: %s",
keyboard_type, error->message);
g_error_free (error);
return NULL;
error = NULL;
layout = eek_xml_layout_new ("us", &error);
if (layout == NULL) {
g_error ("failed to create fallback layout: %s", error->message);
g_error_free (error);
return NULL;
keyboard = eek_keyboard_new (layout, CSW, CSH);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment