Commit 983069a0 authored by Nate Graham's avatar Nate Graham
Browse files

mtp: make error more actionable

This error message is already quite good, but can be made even better by
explicitly mentioning the need to allow access, which is typically done
by tapping "Allow" on the popup that appears on the device's screen when
you plug it in.
parent 39e7c05f
Pipeline #119140 passed with stage
in 2 minutes and 6 seconds
......@@ -215,7 +215,7 @@ void MTPSlave::listDir(const QUrl &url)
finished();
qCDebug(LOG_KIO_MTP) << "[SUCCESS] :: Storage media:" << storages.count();
} else {
error(ERR_SLAVE_DEFINED, i18n("No storage media found. Make sure your device is unlocked and has MTP enabled in its USB connection settings."));
error(ERR_SLAVE_DEFINED, i18nc("Message shown when attempting to access an MTP device that is not fully accessible yet", "Could not access device. Make sure it is unlocked, and tap \"Allow\" on the popup on its screen. If that does not work, make sure MTP is enabled in its USB connection settings."));
}
} else {
// list files and folders
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment