Move fp settings controller out of ui folder

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-09-05 17:17:58 +08:00
parent e9451e9281
commit 556bce2672
No known key found for this signature in database
GPG Key ID: C839200C384636B0
5 changed files with 5 additions and 3 deletions

View File

@ -302,8 +302,8 @@ IF( APPLE )
macOS/fileproviderxpc_mac.mm
macOS/fileproviderxpc_mac_utils.h
macOS/fileproviderxpc_mac_utils.mm
macOS/ui/fileprovidersettingscontroller.h
macOS/ui/fileprovidersettingscontroller_mac.mm)
macOS/fileprovidersettingscontroller.h
macOS/fileprovidersettingscontroller_mac.mm)
endif()
if(SPARKLE_FOUND AND BUILD_UPDATER)

View File

@ -28,7 +28,7 @@
#include "folderstatusmodel.h"
#ifdef BUILD_FILE_PROVIDER_MODULE
#include "macOS/ui/fileprovidersettingscontroller.h"
#include "macOS/fileprovidersettingscontroller.h"
#endif
class QModelIndex;

View File

@ -68,6 +68,8 @@ Page {
CheckBox {
text: qsTr("Enable virtual files")
checked: root.controller.vfsEnabledForAccount(root.accountUserIdAtHost)
onClicked: root.controller.setVfsEnabledForAccount(root.accountUserIdAtHost, checked)
}
}
}