mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-04-16 12:06:55 +02:00
Add a waiting for service message on startup to not confuse user.
This commit is contained in:
parent
bacb8f56c3
commit
80ea7db9c0
1 changed files with 5 additions and 1 deletions
|
@ -90,6 +90,7 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||
QWidgetList widgets = this->findChildren<QWidget*>();
|
||||
foreach(QWidget *widget, widgets)
|
||||
widget->setAttribute(Qt::WA_MacShowFocusRect,false);
|
||||
ui->noNetworksLabel->setText("Connecting to Service..."); // changed when result is received
|
||||
|
||||
mainWindow = this;
|
||||
|
||||
|
@ -238,7 +239,10 @@ void MainWindow::customEvent(QEvent *event)
|
|||
}
|
||||
}
|
||||
|
||||
ui->noNetworksLabel->setVisible(ui->networkListWidget->count() == 0);
|
||||
if (!ui->networkListWidget->count()) {
|
||||
ui->noNetworksLabel->setText("You Have Not Joined Any Networks");
|
||||
ui->noNetworksLabel->setVisible(true);
|
||||
} else ui->noNetworksLabel->setVisible(false);
|
||||
|
||||
if (this->myAddress.size())
|
||||
ui->addressButton->setText(this->myAddress);
|
||||
|
|
Loading…
Add table
Reference in a new issue