mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
fixed(tray): add dbus wait time
This commit is contained in:
parent
5436246e5c
commit
f3c24fb5ce
@ -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()
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user