Fix the loading of C++ plugins from user directory

`appInfo().userPluginsRoot` already contains the versioned directory for
the "current" version. Before adding all the backwards compatible
version directories we need to step up once.

Amends 165ad2784e

Change-Id: I73456629654ff5f65dd8a2a9c2fc1d935a600d5f
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Eike Ziller
2024-12-11 09:21:31 +01:00
parent 0e9943dd67
commit 577b5f577e

View File

@@ -196,7 +196,7 @@ static inline FilePaths getPluginPaths()
// "%LOCALAPPDATA%\QtProject\qtcreator" on Windows Vista and later // "%LOCALAPPDATA%\QtProject\qtcreator" on Windows Vista and later
// "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux // "$XDG_DATA_HOME/data/QtProject/qtcreator" or "~/.local/share/data/QtProject/qtcreator" on Linux
// "~/Library/Application Support/QtProject/Qt Creator" on Mac // "~/Library/Application Support/QtProject/Qt Creator" on Mac
const FilePath userPluginPath = appInfo().userPluginsRoot; const FilePath userPluginPath = appInfo().userPluginsRoot.parentDir();
// Qt Creator X.Y.Z can load plugins from X.Y.(Z-1) etc, so add current and previous // Qt Creator X.Y.Z can load plugins from X.Y.(Z-1) etc, so add current and previous
// patch versions // patch versions