limit double click login when offline

This commit is contained in:
2018-05-19 17:45:14 +08:00
parent 2d707b7484
commit ed5ff09248
+2 -1
View File
@@ -171,7 +171,8 @@ void MainTray::handleActivated(QSystemTrayIcon::ActivationReason reason)
{
switch (reason) {
case QSystemTrayIcon::DoubleClick:
loginAction->trigger();
if(currentState == NetController::Offline)
loginAction->trigger();
break;
case QSystemTrayIcon::Trigger:
contextMenu()->popup(this->geometry().topRight());