feat(GODT-2540): pop-up notification error icon is loaded on startup.

This commit is contained in:
Xavier Michelon
2023-05-03 15:19:02 +02:00
parent 6a6ead8e6d
commit 333daa05c5
2 changed files with 5 additions and 4 deletions

View File

@ -159,8 +159,9 @@ QString qmlResourcePathToQt(QString const &path) {
//****************************************************************************************************************************************************
TrayIcon::TrayIcon()
: QSystemTrayIcon()
, menu_(new QMenu) {
, menu_(new QMenu)
, notificationErrorIcon_(loadIconFromSVG(":/qml/icons/ic-alert.svg"))
{
this->generateDotIcons();
this->setContextMenu(menu_.get());
@ -304,8 +305,7 @@ void TrayIcon::setState(TrayIcon::State state, QString const &stateString, QStri
/// \param[in] message The message.
//****************************************************************************************************************************************************
void TrayIcon::showErrorPopupNotification(QString const &title, QString const &message) {
// this->showMessage(title, message, loadIconFromSVG(":/qml/icons/ic-exclamation-circle-filled.svg", errorColor));
this->showMessage(title, message, loadIconFromSVG(":/qml/icons/ic-alert.svg"));
this->showMessage(title, message, notificationErrorIcon_);
}