forked from qt-creator/qt-creator
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:
@@ -12,9 +12,7 @@ namespace QmlDesigner::Paths {
|
|||||||
|
|
||||||
Utils::FilePath defaultExamplesPath()
|
Utils::FilePath defaultExamplesPath()
|
||||||
{
|
{
|
||||||
QStandardPaths::StandardLocation location = Utils::HostOsInfo::isMacHost()
|
QStandardPaths::StandardLocation location = QStandardPaths::DocumentsLocation;
|
||||||
? QStandardPaths::HomeLocation
|
|
||||||
: QStandardPaths::DocumentsLocation;
|
|
||||||
|
|
||||||
return Utils::FilePath::fromString(QStandardPaths::writableLocation(location))
|
return Utils::FilePath::fromString(QStandardPaths::writableLocation(location))
|
||||||
.pathAppended("QtDesignStudio/examples");
|
.pathAppended("QtDesignStudio/examples");
|
||||||
|
Reference in New Issue
Block a user