-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
fixcpn): use model semver over radio semver for decoding model sources and switches #4768
Conversation
97c30eb
to
cf8c99d
Compare
if (modelSettingsVersion > SemanticVersion(VERSION)) | ||
qDebug() << "Warning: version not supported by Companion!"; | ||
if (modelSettingsVersion > SemanticVersion(VERSION)) { | ||
QString prmpt = QCoreApplication::translate("YamlModelSettings", "Warning: Model settings file version %1 is not supported by this version of Companion!\n\nModel and radio settings may be corrupted if you continue.\n\nI acknowledge and accept the consequences."); |
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.
Is it possible to display the model filename in question here? edit: I'm going to assume "not easily" as it appears to be working on just data of the file, so will merge this anyway, but with a plea that it give some idea as to which file is being a pain in the future if you are unlucky enough to be faced with this.
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.
A present the best I could do is display the model name and add a TODO reminder.
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.
That would be great in the interim - better than a bunch of non-descript "something ain't right" errors. Just thinking back to the other todo about the error handling, maybe that is where the filename could get exposed as part of the reason for failing.
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.
One day.....
Fixes #4759 and also display message for each model file where the version is ahead of Companion.