setup: Connect ui to the state manager
This ensures that the layout type information is accessible to the state manager when new layout information arrive. The should be thought of as a stopgap measure. A proper solution would be to separate the state properly, and probably turn layout information coming from random places into messages that some object (thread?) collects and displays.
This commit is contained in:
@ -201,7 +201,10 @@ fn load_layout_data_with_fallback(
|
||||
source, e
|
||||
),
|
||||
},
|
||||
Ok(layout) => return (kind, layout),
|
||||
Ok(layout) => {
|
||||
log_print!(logging::Level::Info, "Loaded layout {}", source);
|
||||
return (kind, layout);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -288,6 +288,7 @@ main (int argc, char **argv)
|
||||
if (instance.dbus_handler) {
|
||||
dbus_handler_set_ui_context(instance.dbus_handler, instance.ui_context);
|
||||
}
|
||||
eekboard_context_service_set_ui(instance.settings_context, instance.ui_context);
|
||||
|
||||
session_register();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user