fixed(tray): add dbus wait time

This commit is contained in:
shaojun 2020-03-03 10:43:56 +08:00
parent 5436246e5c
commit f3c24fb5ce
2 changed files with 3 additions and 2 deletions

View File

@ -584,7 +584,7 @@ void SNITrayWidget::showHoverTips()
QProcess p;
p.start("qdbus", {m_dbusService});
if (!p.waitForFinished(100)) {
if (!p.waitForFinished(1000)) {
qWarning() << "sni dbus service error : " << m_dbusService;
return;
}
@ -601,6 +601,7 @@ void SNITrayWidget::showHoverTips()
m_tipsLabel->setText(tooltip.title);
showPopupWindow(m_tipsLabel);
}
}
void SNITrayWidget::hideNonModel()

View File

@ -416,7 +416,7 @@ void TrayPlugin::traySNIAdded(const QString &itemKey, const QString &sniServiceP
QProcess p;
p.start("qdbus", {nsiServerName});
if (!p.waitForFinished(100)) {
if (!p.waitForFinished(1000)) {
qWarning() << "sni dbus service error : " << nsiServerName;
return;
}