Added 500ms delay to message popups

This commit is contained in:
Xian Nox
2013-12-18 21:18:25 +01:00
parent 64016fc8ff
commit 3f9e82ebf8

View File

@@ -197,6 +197,9 @@ void MainWidget::createTrayIcon()
void MainWidget::receiveMessage(QString message)
{
// a timeout is added before the popups are displayed to prevent them from
// appearing in the wrong location
Sleeper::msleep(500);
if(trayIcon->isVisible()) {
trayIcon->showMessage(tr("Information"), message);
}