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
Add board type information to mfmc file #1530
Conversation
Build for this pull request: |
Build for this pull request: |
Build for this pull request: |
var message = string.Format(i18n._tr("uiMessageOpenConfigUnspecificTypeText"), module.Type); | ||
|
||
// New configs have a specific type other than "" | ||
if ((newConfig?.ModuleType ?? "") != "") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a bit of a style thing, but I prefer using String.IsNullOrEmpty()
when testing strings for empty values instead of "".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point. they introduced that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It reads better, yet I don't understand why some of these are not simply an extension method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will comment more in discord
The file doesn't contain any board type information. It might be incompatible. Your board type is "....". I think ideally we could tell the user that it will be saved next time. Just so that they know how to get rid of this message. |
Save the file again to associate it with the current board type. |
Build for this pull request: |
fixes #1521
equals
implementations in various classes