-
Notifications
You must be signed in to change notification settings - Fork 1
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
G3X Touch events mislabeled #54
Comments
The issue is that the event name was prefixed by a space when created and Hubhop converts spaces in the names to underscores. Solution is to delete the space in front. I have fixed the preceding space in Hubhop. Hubhop should now generate the correct name for events.txt. |
Ah, okay. Thanks. Can I suggest that you add calling I was the one who added those values to Hubhob originally and never realized I was pasting unnecessary white space in there in the first place. Appreciate the fix though! |
Adding trim does make sense, on creating and as well as on exporting. Just in case |
I moved the issue to the Hubhop Repository |
Thanks. Can you check what you can do in the exporter, @MobiFlight-Admin ? |
I think the correct solution is to not allow the event names to start or end with spaces or any special characters, only alpha numeric, when the events are created, rather than patching it on export. |
I agree, sanitizing input should be done on saving... but even there it could be on API level or the front end or both. API is probably the better spot because we can submit stuff without UI too |
Leading/Trailing Spaces are now removed and only RPN Syntax is allowed in the code. Special characters are removed from the label. |
@MobiFlight-Admin - close the issue if you are happy with it |
Describe the bug
There are 12 events that support the stock G3X Touch display (used in the X Cub and VL-3). 11 of them are erroneously prefixed with an underscore.
Steps To Reproduce
See lines
1666 - 1676
ofevents.txt
(below). You'll see they begin with an underscore character.https://github.com/MobiFlight/MobiFlight-Connector/blob/dc5772bdf38e63c91d8d30512109913e37f6ce1e/MSFS2020-module/mobiflight-event-module/modules/events.txt#L1666-L1676
Expected behavior
They should instead look like the one correctly-name event, orphaned by itself on line
1865
(below).https://github.com/MobiFlight/MobiFlight-Connector/blob/dc5772bdf38e63c91d8d30512109913e37f6ce1e/MSFS2020-module/mobiflight-event-module/modules/events.txt#L1865
Additional context
Hubhop has them named correctly, without prefixed underscores:
The text was updated successfully, but these errors were encountered: