Skip to content

Commit

Permalink
Move fp settings controller out of ui folder
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 5, 2023
1 parent 07c6585 commit 0a97f8a
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,13 +291,13 @@ IF( APPLE )
macOS/fileprovider_mac.mm
macOS/fileproviderdomainmanager.h
macOS/fileproviderdomainmanager_mac.mm
macOS/fileprovidersettingscontroller.h
macOS/fileprovidersettingscontroller_mac.mm
macOS/fileprovidersocketcontroller.h
macOS/fileprovidersocketcontroller.cpp
macOS/fileprovidersocketserver.h
macOS/fileprovidersocketserver.cpp
macOS/fileprovidersocketserver_mac.mm
macOS/ui/fileprovidersettingscontroller.h
macOS/ui/fileprovidersettingscontroller_mac.mm)
macOS/fileprovidersocketserver_mac.mm)
endif()

if(SPARKLE_FOUND AND BUILD_UPDATER)
Expand Down
2 changes: 1 addition & 1 deletion src/gui/accountsettings.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include "folderstatusmodel.h"

#ifdef BUILD_FILE_PROVIDER_MODULE
#include "macOS/ui/fileprovidersettingscontroller.h"
#include "macOS/fileprovidersettingscontroller.h"
#endif

class QModelIndex;
Expand Down
2 changes: 2 additions & 0 deletions src/gui/macOS/ui/FileProviderSettings.qml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ Page {

CheckBox {
text: qsTr("Enable virtual files")
checked: root.controller.vfsEnabledForAccount(root.accountUserIdAtHost)
onClicked: root.controller.setVfsEnabledForAccount(root.accountUserIdAtHost, checked)
}
}
}

0 comments on commit 0a97f8a

Please sign in to comment.