mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-21 11:02:45 -05:00
Show mountpoint on multiple devices found message as well.
Change-Id: I315813646ee3fe3b510510e99e2dbf88c649f4d8
This commit is contained in:
parent
f3b56eba58
commit
fe45f8f090
1 changed files with 7 additions and 2 deletions
|
|
@ -741,9 +741,14 @@ void Config::autodetect()
|
||||||
msg += tr("Detected devices:");
|
msg += tr("Detected devices:");
|
||||||
msg += "<ul>";
|
msg += "<ul>";
|
||||||
for(int i = 0; i < detected.size(); ++i) {
|
for(int i = 0; i < detected.size(); ++i) {
|
||||||
msg += QString("<li>%1</li>").arg(
|
QString mp = detected.at(i).mountpoint;
|
||||||
|
if(mp.isEmpty()) {
|
||||||
|
mp = tr("(unknown)");
|
||||||
|
}
|
||||||
|
msg += QString("<li>%1 at %2</li>").arg(
|
||||||
SystemInfo::platformValue(detected.at(i).device,
|
SystemInfo::platformValue(detected.at(i).device,
|
||||||
SystemInfo::CurPlatformName).toString());
|
SystemInfo::CurPlatformName).toString(),
|
||||||
|
QDir::toNativeSeparators(mp));
|
||||||
}
|
}
|
||||||
msg += "</ul>";
|
msg += "</ul>";
|
||||||
msg += tr("Note: detecting connected devices might be ambiguous. "
|
msg += tr("Note: detecting connected devices might be ambiguous. "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue