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:
parent
ca022d7036
commit
11610c2883
@ -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
|
||||
|
@ -133,6 +133,7 @@ Item {
|
||||
}
|
||||
FolderDialog {
|
||||
id: folderDialogSaveLocation
|
||||
currentFolder: ScreenPlay.globalVariables.localStoragePath
|
||||
onAccepted: {
|
||||
ScreenPlay.globalVariables.setLocalStoragePath(
|
||||
folderDialogSaveLocation.currentFolder)
|
||||
|
Loading…
Reference in New Issue
Block a user