[map] Fix non-stop file read exceptions in the Qt application #9894

Open
Ferenc- wants to merge 1 commit from fix-file-read-exception into master

1 commit

Author SHA1 Message Date
Ferenc Géczi
51ea83c2aa
[map] Fix non-stop file read exceptions in the Qt application
Unless the `OMaps/power_manager_config` file has been created
on the system by a previous version of OM, or by hand,
the current `master` version of the Qt application kept logging
the following exception on every single restart:

````
power_management/power_manager.cpp:71 Load(): Cannot read power manager config file. Exception: [...]; READ; No such file or directory
````

This commit fixes that by creating and initializing the file
with defaults if it is not found.

Signed-off-by: Ferenc Géczi <ferenc.gm@gmail.com>
2024-12-18 00:00:00 +00:00