1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-09-15 06:52:34 +02:00

Fix setting and updateting of the localStoragePath

This commit is contained in:
Elias Steurer 2019-10-19 21:13:38 +02:00
parent ca022d7036
commit 11610c2883
2 changed files with 2 additions and 0 deletions

View File

@ -41,6 +41,7 @@ App::App()
// When the installed storage path changed
QObject::connect(m_settings.get(), &Settings::resetInstalledListmodel, m_installedListModel.get(), &InstalledListModel::reset);
QObject::connect(m_globalVariables.get(), &GlobalVariables::localStoragePathChanged, m_settings.get(), &Settings::resetInstalledListmodel);
QObject::connect(m_monitorListModel.get(), &MonitorListModel::monitorConfigurationChanged, m_sdkConnector.get(), &SDKConnector::closeAllWallpapers);
// Init after we have the paths from settings

View File

@ -133,6 +133,7 @@ Item {
}
FolderDialog {
id: folderDialogSaveLocation
currentFolder: ScreenPlay.globalVariables.localStoragePath
onAccepted: {
ScreenPlay.globalVariables.setLocalStoragePath(
folderDialogSaveLocation.currentFolder)