feat: make MultyMessageDialog message show in the WarningMessageWidget.

This commit is contained in:
sunwen
2025-03-20 09:30:38 +08:00
parent 30dbf134dd
commit a2008c6f58
6 changed files with 12 additions and 15 deletions

View File

@@ -931,7 +931,7 @@ bool DeviceManager::startCEScan()
QString msg = tr("Initialize Failed.");
THROW_ERROR(msg);
msg = tr("Start CE Scan Failed.");
EventCenter::Default()->triggerEvent(WarningMessageRaise, nullptr, (QObject*)&msg);
emitInfoCallback(msg, MessageLevel::Error);
return false;
}
return true;
@@ -1431,8 +1431,7 @@ void DeviceManager::prepareCheckReconConnection()
void DeviceManager::processReconMessage(const QString &aMessage)
{
QString msg=aMessage;
EventCenter::Default()->triggerEvent(WarningMessageRaise, nullptr, (QObject*)&aMessage);
emitInfoCallback(aMessage, MessageLevel::Warning);
}
void DeviceManager::processEmergencyButtonReset(const QString& aResponse)