fix(libnotification):超时时间默认单位统一设置为毫秒

This commit is contained in:
iaom 2024-02-23 11:24:36 +08:00
parent 3c08ac3fa1
commit 5c619dffdb
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public:
QString m_display;
QStringList m_actionState;
bool m_noFold = false;
int m_popupTimeout = 6;
int m_popupTimeout = 6000; //ms
};
}
using namespace UkuiNotification;
@ -290,7 +290,7 @@ void PopupNotification::setHints(const QVariantMap &hints)
break;
case 1: //中等级弹窗时间默认6秒
setUrgency(Urgency::NormalUrgency);
d->m_popupTimeout = 6;
d->m_popupTimeout = 6000;
break;
case 2: //高等级,默认弹窗常驻,不可折叠
setUrgency(Urgency::CriticalUrgency);