Any drive settings in the global config will override loaded settings from an

fl2 file.
This commit is contained in:
dg
2023-05-11 19:21:59 +00:00
parent d84c366480
commit 9e383575d1

View File

@@ -37,10 +37,9 @@ public:
{
_proto = loadFl2File(_config.filename());
if (::globalConfig()->has_drive())
warning(
"FLUX: overriding drive configuration with flux file contents");
::globalConfig()->mutable_drive()->MergeFrom(_proto.drive());
DriveProto d = _proto.drive();
d.MergeFrom(globalConfig()->drive());
*(globalConfig()->mutable_drive()) = d;
}
public: