Load JSON file into JSON Editor during application boot

This commit is contained in:
Alex Spataru 2021-11-11 23:03:24 -06:00
parent 41d8ac36d8
commit 7a9363064c
2 changed files with 2 additions and 4 deletions

View File

@ -50,10 +50,7 @@ FramelessWindow.CustomWindow {
//
// Ensure that current JSON file is shown
//
onVisibleChanged: {
if (visible)
Cpp_JSON_Editor.openJsonFile(Cpp_JSON_Generator.jsonMapFilepath)
}
Component.onCompleted: Cpp_JSON_Editor.openJsonFile(Cpp_JSON_Generator.jsonMapFilepath)
//
// Ask user to save changes before closing the window

View File

@ -26,6 +26,7 @@
#include <QHostInfo>
#include <QByteArray>
#include <QHostAddress>
#include <QSslConfiguration>
#include <qmqtt.h>
#include <DataTypes.h>