Use adb getprop to give adb devices friendly names

* This means you'll see "Google Pixel XL" or "samsung SM-G900F" instead
  of "HT74T0200775" or "9a9502c6"
This commit is contained in:
baldurk
2017-06-15 05:28:07 -07:00
committed by Baldur Karlsson
parent 02a7d8d50c
commit c76b8298f8
8 changed files with 57 additions and 13 deletions
+3 -3
View File
@@ -168,7 +168,7 @@ bool RemoteManager::isRemoteServerLive(RDTreeWidgetItem *node)
void RemoteManager::addHost(RemoteHost *host)
{
RDTreeWidgetItem *node = new RDTreeWidgetItem({host->Hostname, lit("...")});
RDTreeWidgetItem *node = new RDTreeWidgetItem({host->Name(), lit("...")});
node->setItalic(true);
node->setIcon(0, Icons::hourglass());
@@ -443,7 +443,7 @@ void RemoteManager::on_hosts_itemSelectionChanged()
ui->refreshOne->setEnabled(true);
ui->runCommand->setText(host->RunCommand);
ui->hostname->setText(host->Hostname);
ui->hostname->setText(host->Name());
ui->addUpdateHost->setText(tr("Update"));
@@ -586,7 +586,7 @@ void RemoteManager::on_connect_clicked()
{
QMessageBox::StandardButton res = RDDialog::question(
this, tr("Remote server shutdown"),
tr("Are you sure you wish to shut down running remote server on %1?").arg(host->Hostname),
tr("Are you sure you wish to shut down running remote server on %1?").arg(host->Name()),
RDDialog::YesNoCancel);
if(res == QMessageBox::Cancel || res == QMessageBox::No)