Qt: update success is not an error

This commit is contained in:
Brad Parker 2018-08-16 08:42:40 -04:00
parent f37898dd01
commit 18a6467d4f
2 changed files with 9 additions and 1 deletions

View File

@ -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)

View File

@ -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);