Added 500ms delay to message popups
This commit is contained in:
1 parent
64016fc8ff
commit
3f9e82ebf8
1 file changed
+3
@@ -197,6 +197,9 @@ void MainWidget::createTrayIcon()
|
|||||||
|
|
||||||
void MainWidget::receiveMessage(QString message)
|
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()) {
|
if(trayIcon->isVisible()) {
|
||||||
trayIcon->showMessage(tr("Information"), message);
|
trayIcon->showMessage(tr("Information"), message);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user