mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 22:46:04 +03:00
Make mac implementation of file provider settings controller a QObject
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
21a317cff3
commit
9774ac6dde
2 changed files with 3 additions and 7 deletions
|
@ -60,10 +60,9 @@ signals:
|
|||
|
||||
private:
|
||||
explicit FileProviderSettingsController(QObject *parent = nullptr);
|
||||
~FileProviderSettingsController() override;
|
||||
|
||||
class MacImplementation;
|
||||
std::unique_ptr<MacImplementation> d;
|
||||
MacImplementation *d;
|
||||
|
||||
QHash<QString, UserInfo*> _userInfos;
|
||||
};
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace Mac {
|
|||
|
||||
Q_LOGGING_CATEGORY(lcFileProviderSettingsController, "nextcloud.gui.mac.fileprovider.settingscontroller")
|
||||
|
||||
class FileProviderSettingsController::MacImplementation
|
||||
class FileProviderSettingsController::MacImplementation : public QObject
|
||||
{
|
||||
public:
|
||||
enum class VfsAccountsAction {
|
||||
|
@ -292,13 +292,10 @@ FileProviderSettingsController *FileProviderSettingsController::instance()
|
|||
return &controller;
|
||||
}
|
||||
|
||||
FileProviderSettingsController::~FileProviderSettingsController() = default;
|
||||
|
||||
FileProviderSettingsController::FileProviderSettingsController(QObject *parent)
|
||||
: QObject{parent}
|
||||
, d(new FileProviderSettingsController::MacImplementation(this))
|
||||
{
|
||||
d = std::make_unique<FileProviderSettingsController::MacImplementation>(this);
|
||||
|
||||
const auto accManager = AccountManager::instance();
|
||||
const auto accountsList = accManager->accounts();
|
||||
|
||||
|
|
Loading…
Reference in a new issue