[Simulator] Fix startup when using a new file for radio data (file is now properly created, errors from Storage are ignored); Do not start simulator at all in case of data errors; Fix startup option dialog when finding radio type from profile for first time; Fix RadioOptions struct version control; Cleanup unused WinConsole code; Fix a warning and a missing const reference; Move ~SimulatedUIWidget() to public.
This commit is contained in:
@@ -45,7 +45,7 @@ struct SimulatorOptions
|
||||
};
|
||||
|
||||
private:
|
||||
quint16 _version = SIMULATOR_OPTIONS_VERSION; // structure definition version
|
||||
quint16 _version; // structure definition version
|
||||
|
||||
public:
|
||||
// v1 fields
|
||||
@@ -60,7 +60,7 @@ struct SimulatorOptions
|
||||
|
||||
friend QDataStream & operator << (QDataStream &out, const SimulatorOptions & o)
|
||||
{
|
||||
out << o._version << o.startupDataType << o.firmwareId << o.dataFile << o.dataFolder
|
||||
out << quint16(SIMULATOR_OPTIONS_VERSION) << o.startupDataType << o.firmwareId << o.dataFile << o.dataFolder
|
||||
<< o.sdPath << o.windowGeometry << o.controlsState << o.lcdColor;
|
||||
return out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user