mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-31 08:25:38 +00:00
Add a waiting for service message on startup to not confuse user.
This commit is contained in:
parent
bacb8f56c3
commit
80ea7db9c0
@ -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…
x
Reference in New Issue
Block a user