Show connected message box only when main GUI is visible #4850

This commit is contained in:
Jerry (Xinyu Hou) 2015-07-20 16:19:46 -07:00
parent 7259e71439
commit 1369f46cee

View File

@ -409,7 +409,7 @@ void MainWindow::checkConnected(const QString& line)
{
setSynergyState(synergyConnected);
if (!appConfig().startedBefore()) {
if (!appConfig().startedBefore() && isVisible()) {
QMessageBox::information(
this, "Synergy",
tr("Synergy is now connected, You can close the "