Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Device-config is only read from disk if a User-config exists #157

Open
blackspherefollower opened this issue Oct 25, 2024 · 0 comments
Open

Comments

@blackspherefollower
Copy link
Contributor

blackspherefollower commented Oct 25, 2024

The built-in (and potentially out-of-date) device config is used by Intiface unless a device has already been added, causing the creation of a user-config. See https://github.com/intiface/intiface-central/blob/main/lib/bloc/device_configuration/user_device_configuration_cubit.dart#L31-L33 for the offending block.

The removal of this block (or adding a user config) appears to cause logging from the rust layers to be suppressed: we stop seeing the list of loaded protocols that don't have implementations or the info messages regarding whether the config loaded was internal or "custom". This suggests that the initialization order might not be correct.

blackspherefollower added a commit to blackspherefollower/intiface-central that referenced this issue Oct 25, 2024
This fix also corrects order of the logging/DCM initialization.

Fixes intiface#157
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant