Skip to content

Commit

Permalink
Ensure file provider instance gets initialised at app launch WITHOUT …
Browse files Browse the repository at this point in the history
…creating a separate instance from expected singleton

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jul 22, 2024
1 parent 46c0af7 commit 8fc5849
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion src/gui/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ Application::Application(int &argc, char **argv)
AccountSetupCommandLineManager::destroy();

#if defined(BUILD_FILE_PROVIDER_MODULE)
_fileProvider.reset(new Mac::FileProvider);
Mac::FileProvider::instance();
#endif
}

Expand Down
8 changes: 0 additions & 8 deletions src/gui/application.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@ class Folder;
class ShellExtensionsServer;
class SslErrorDialog;

#ifdef Q_OS_MACOS
namespace Mac {
class FileProvider;
}
#endif

/**
* @brief The Application class
* @ingroup gui
Expand Down Expand Up @@ -163,8 +157,6 @@ protected slots:
QScopedPointer<FolderMan> _folderManager;
#if defined(Q_OS_WIN)
QScopedPointer<ShellExtensionsServer> _shellExtensionsServer;
#elif defined(Q_OS_MACOS)
QScopedPointer<Mac::FileProvider> _fileProvider;
#endif
};

Expand Down

0 comments on commit 8fc5849

Please sign in to comment.