mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 04:14:00 +00:00
Qt: update success is not an error
This commit is contained in:
parent
f37898dd01
commit
18a6467d4f
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user