1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00

Remove old settings json

This commit is contained in:
Elias Steurer 2020-03-06 12:22:12 +01:00
parent edac66ed4b
commit cfbf825d50
4 changed files with 4 additions and 10 deletions

View File

@ -94,7 +94,6 @@
<file>qml/Settings/SettingsHorizontalSeperator.qml</file>
<file>qml/Workshop/Workshop.qml</file>
<file>qtquickcontrols2.conf</file>
<file>settings.json</file>
<file>translations/ScreenPlay_de.qm</file>
<file>translations/ScreenPlay_en.qm</file>
<file>assets/icons/icon_screen.svg</file>

View File

@ -108,7 +108,7 @@ App::App()
QObject::connect(m_settings.get(), &Settings::resetInstalledListmodel, m_installedListModel.get(), &InstalledListModel::reset);
QObject::connect(m_globalVariables.get(), &GlobalVariables::localStoragePathChanged, this, [this](QUrl localStoragePath) {
m_settings->resetInstalledListmodel();
m_settings->writeSingleSettingConfig("absoluteStoragePath", localStoragePath.toString());
m_settings->setqSetting("ScreenPlayContentPath", localStoragePath.toString());
});
QObject::connect(m_monitorListModel.get(), &MonitorListModel::monitorConfigurationChanged, m_sdkConnector.get(), &SDKConnector::closeAllWallpapers);

View File

@ -1,7 +0,0 @@
{
"version":"1.0.0",
"autostart":true,
"highPriorityStart":false,
"anonymousTelemetry":true,
"absoluteStoragePath":""
}

View File

@ -1,5 +1,6 @@
#pragma once
#include <QObject>
#include <QStandardPaths>
#include <QUrl>
#include <QVersionNumber>
@ -25,6 +26,7 @@ public:
explicit GlobalVariables(QObject* parent = nullptr)
: QObject(parent)
{
setLocalSettingsPath(QUrl { QStandardPaths::writableLocation(QStandardPaths::DataLocation) });
}
QUrl localStoragePath() const
@ -101,6 +103,6 @@ private:
QUrl m_localSettingsPath;
QUrl m_wallpaperExecutablePath;
QUrl m_widgetExecutablePath;
QVersionNumber m_version {1,0,0};
QVersionNumber m_version { 1, 0, 0 };
};
}