diff --git a/src/main.cpp b/src/main.cpp index 2064e9e5c..de84bb326 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -100,6 +100,11 @@ int main(int argc, char *argv[]) { QCoreApplication::setOrganizationDomain("open.hd"); QCoreApplication::setApplicationName("Open.HD"); + auto manageSettings = new ManageSettings(); + #if defined(__rasp_pi__) + manageSettings->loadPiSettings(); + #endif + QSettings settings; double global_scale = settings.value("global_scale", 1.0).toDouble(); @@ -338,13 +343,8 @@ OpenHDAppleVideo *pipVideo = new OpenHDAppleVideo(OpenHDStreamTypePiP); #endif - auto manageSettings = new ManageSettings(); engine.rootContext()->setContextProperty("ManageSettings", manageSettings); - #if defined(__rasp_pi__) - manageSettings->loadPiSettings(); - #endif - auto openHDSettings = new OpenHDSettings(); engine.rootContext()->setContextProperty("openHDSettings", openHDSettings);