From 18a6467d4fc49d0264f4efc048994e36c8da85cd Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Thu, 16 Aug 2018 08:42:40 -0400 Subject: [PATCH] Qt: update success is not an error --- ui/drivers/qt/ui_qt_window.cpp | 8 +++++++- ui/drivers/ui_qt.h | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ui/drivers/qt/ui_qt_window.cpp b/ui/drivers/qt/ui_qt_window.cpp index 74efb56118..2f09752689 100644 --- a/ui/drivers/qt/ui_qt_window.cpp +++ b/ui/drivers/qt/ui_qt_window.cpp @@ -1181,6 +1181,7 @@ MainWindow::MainWindow(QWidget *parent) : /* these are always queued */ connect(this, SIGNAL(showErrorMessageDeferred(QString)), this, SLOT(onShowErrorMessage(QString)), Qt::QueuedConnection); + connect(this, SIGNAL(showInfoMessageDeferred(QString)), this, SLOT(onShowInfoMessage(QString)), Qt::QueuedConnection); connect(this, SIGNAL(extractArchiveDeferred(QString)), this, SLOT(onExtractArchive(QString)), Qt::QueuedConnection); m_timer->start(TIMER_MSEC); @@ -5131,6 +5132,11 @@ void MainWindow::onShowErrorMessage(QString msg) showMessageBox(msg, MainWindow::MSGBOX_TYPE_ERROR, Qt::ApplicationModal, false); } +void MainWindow::onShowInfoMessage(QString msg) +{ + showMessageBox(msg, MainWindow::MSGBOX_TYPE_INFO, Qt::ApplicationModal, false); +} + void MainWindow::onRetroArchUpdateDownloadFinished() { QNetworkReply *reply = m_updateReply.data(); @@ -5231,7 +5237,7 @@ void MainWindow::onUpdateRetroArchFinished(bool success) RARCH_LOG("[Qt]: RetroArch update finished successfully.\n"); - emit showErrorMessageDeferred(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_UPDATE_RETROARCH_FINISHED)); + emit showInfoMessageDeferred(msg_hash_to_str(MENU_ENUM_LABEL_VALUE_QT_UPDATE_RETROARCH_FINISHED)); } int MainWindow::onExtractArchive(QString path) diff --git a/ui/drivers/ui_qt.h b/ui/drivers/ui_qt.h index 8823d243a6..f1a1bd03b6 100644 --- a/ui/drivers/ui_qt.h +++ b/ui/drivers/ui_qt.h @@ -381,6 +381,7 @@ signals: void gotReloadPlaylists(); void gotReloadShaderParams(); void showErrorMessageDeferred(QString msg); + void showInfoMessageDeferred(QString msg); void extractArchiveDeferred(QString path); public slots: @@ -459,6 +460,7 @@ private slots: void onUpdateDownloadReadyRead(); void onUpdateDownloadCanceled(); void onShowErrorMessage(QString msg); + void onShowInfoMessage(QString msg); void onContributorsClicked(); void onShaderParamCheckBoxClicked(); void onShaderParamSliderValueChanged(int value);