StudioWelcome: Use DocumentsLocation for examples also on macOS

This was a workaround for macOS (QDS-6305).

Task-number: QDS-9232
Change-Id: If85d2f950765d8114d8de60ab1dd5126845bb599
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Thomas Hartmann
2023-04-21 15:57:29 +02:00
parent b0c3377f1d
commit 0c7c7272ea

View File

@@ -12,9 +12,7 @@ namespace QmlDesigner::Paths {
Utils::FilePath defaultExamplesPath()
{
QStandardPaths::StandardLocation location = Utils::HostOsInfo::isMacHost()
? QStandardPaths::HomeLocation
: QStandardPaths::DocumentsLocation;
QStandardPaths::StandardLocation location = QStandardPaths::DocumentsLocation;
return Utils::FilePath::fromString(QStandardPaths::writableLocation(location))
.pathAppended("QtDesignStudio/examples");