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 */
|
/* these are always queued */
|
||||||
connect(this, SIGNAL(showErrorMessageDeferred(QString)), this, SLOT(onShowErrorMessage(QString)), Qt::QueuedConnection);
|
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);
|
connect(this, SIGNAL(extractArchiveDeferred(QString)), this, SLOT(onExtractArchive(QString)), Qt::QueuedConnection);
|
||||||
|
|
||||||
m_timer->start(TIMER_MSEC);
|
m_timer->start(TIMER_MSEC);
|
||||||
|
@ -5131,6 +5132,11 @@ void MainWindow::onShowErrorMessage(QString msg)
|
||||||
showMessageBox(msg, MainWindow::MSGBOX_TYPE_ERROR, Qt::ApplicationModal, false);
|
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()
|
void MainWindow::onRetroArchUpdateDownloadFinished()
|
||||||
{
|
{
|
||||||
QNetworkReply *reply = m_updateReply.data();
|
QNetworkReply *reply = m_updateReply.data();
|
||||||
|
@ -5231,7 +5237,7 @@ void MainWindow::onUpdateRetroArchFinished(bool success)
|
||||||
|
|
||||||
RARCH_LOG("[Qt]: RetroArch update finished successfully.\n");
|
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)
|
int MainWindow::onExtractArchive(QString path)
|
||||||
|
|
|
@ -381,6 +381,7 @@ signals:
|
||||||
void gotReloadPlaylists();
|
void gotReloadPlaylists();
|
||||||
void gotReloadShaderParams();
|
void gotReloadShaderParams();
|
||||||
void showErrorMessageDeferred(QString msg);
|
void showErrorMessageDeferred(QString msg);
|
||||||
|
void showInfoMessageDeferred(QString msg);
|
||||||
void extractArchiveDeferred(QString path);
|
void extractArchiveDeferred(QString path);
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
|
@ -459,6 +460,7 @@ private slots:
|
||||||
void onUpdateDownloadReadyRead();
|
void onUpdateDownloadReadyRead();
|
||||||
void onUpdateDownloadCanceled();
|
void onUpdateDownloadCanceled();
|
||||||
void onShowErrorMessage(QString msg);
|
void onShowErrorMessage(QString msg);
|
||||||
|
void onShowInfoMessage(QString msg);
|
||||||
void onContributorsClicked();
|
void onContributorsClicked();
|
||||||
void onShaderParamCheckBoxClicked();
|
void onShaderParamCheckBoxClicked();
|
||||||
void onShaderParamSliderValueChanged(int value);
|
void onShaderParamSliderValueChanged(int value);
|
||||||
|
|
Loading…
Reference in New Issue