mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-16 08:32:36 -05:00
rbutil: Convert ServerInfo to singleton.
Change-Id: I29d94eb6bae084754e5e3f337c41de8354ba123c
This commit is contained in:
parent
f8fb4274ee
commit
f608de723c
7 changed files with 45 additions and 31 deletions
|
|
@ -385,9 +385,8 @@ void Config::setDevices()
|
|||
continue;
|
||||
// construct display name
|
||||
QString curname = SystemInfo::platformValue(
|
||||
SystemInfo::Name, platformList.at(it)).toString() +
|
||||
" (" + ServerInfo::statusToString(ServerInfo::platformValue(
|
||||
ServerInfo::CurStatus, platformList.at(it)).toInt()) +")";
|
||||
SystemInfo::Name, platformList.at(it)).toString()
|
||||
+ " (" + ServerInfo::instance()->statusAsString(platformList.at(it)) + ")";
|
||||
LOG_INFO() << "add supported device:" << brands.at(c) << curname;
|
||||
w2 = new QTreeWidgetItem(w, QStringList(curname));
|
||||
w2->setData(0, Qt::UserRole, platformList.at(it));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue