diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-02-22 17:29:28 +0100 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2022-02-22 17:10:19 +0000 |
commit | d8b5d2b7a552547d0c5d4d1ba904fbde76a319a2 (patch) | |
tree | f7b6b0349bf0178345bedfcdb3f15f3e35699f82 | |
parent | 7dd05f8937e484344a5525b2e62cdf5283c0a639 (diff) | |
download | qt-creator-d8b5d2b7a552547d0c5d4d1ba904fbde76a319a2.tar.gz |
StudioWelcome: Download examples to home on macOS
Task-number: QDS-6305
Change-Id: I7e80ec6a8d5d79b75412fee975efaedd92e048d0
Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
-rw-r--r-- | src/plugins/studiowelcome/studiowelcomeplugin.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.cpp b/src/plugins/studiowelcome/studiowelcomeplugin.cpp index 8e38dccc6b..ab4cf65f19 100644 --- a/src/plugins/studiowelcome/studiowelcomeplugin.cpp +++ b/src/plugins/studiowelcome/studiowelcomeplugin.cpp @@ -660,8 +660,11 @@ void StudioWelcomePlugin::resumeRemoveSplashTimer() Utils::FilePath StudioWelcomePlugin::defaultExamplesPath() { - return Utils::FilePath::fromString( - QStandardPaths::writableLocation(QStandardPaths::DocumentsLocation)) + QStandardPaths::StandardLocation location = Utils::HostOsInfo::isMacHost() + ? QStandardPaths::HomeLocation + : QStandardPaths::DocumentsLocation; + + return Utils::FilePath::fromString(QStandardPaths::writableLocation(location)) .pathAppended("QtDesignStudio"); } |