Implement legacy forge button!
Many refactors of the task system. Progress dialog now accepts generic ProgressProvider objects
This commit is contained in:
parent
d38b90530b
commit
b979d0ce5d
28 changed files with 296 additions and 236 deletions
|
@ -42,7 +42,7 @@
|
|||
#include "gui/settingsdialog.h"
|
||||
#include "gui/newinstancedialog.h"
|
||||
#include "gui/logindialog.h"
|
||||
#include "gui/taskdialog.h"
|
||||
#include "gui/ProgressDialog.h"
|
||||
#include "gui/aboutdialog.h"
|
||||
#include "gui/versionselectdialog.h"
|
||||
#include "gui/lwjglselectdialog.h"
|
||||
|
@ -479,7 +479,7 @@ void MainWindow::doLogin(const QString& errorMsg)
|
|||
{
|
||||
UserInfo uInfo{loginDlg->getUsername(), loginDlg->getPassword()};
|
||||
|
||||
TaskDialog* tDialog = new TaskDialog(this);
|
||||
ProgressDialog* tDialog = new ProgressDialog(this);
|
||||
LoginTask* loginTask = new LoginTask(uInfo, tDialog);
|
||||
connect(loginTask, SIGNAL(succeeded()),SLOT(onLoginComplete()), Qt::QueuedConnection);
|
||||
connect(loginTask, SIGNAL(failed(QString)), SLOT(doLogin(QString)), Qt::QueuedConnection);
|
||||
|
@ -512,7 +512,7 @@ void MainWindow::onLoginComplete()
|
|||
}
|
||||
else
|
||||
{
|
||||
TaskDialog *tDialog = new TaskDialog(this);
|
||||
ProgressDialog *tDialog = new ProgressDialog(this);
|
||||
connect(updateTask, SIGNAL(succeeded()),SLOT(onGameUpdateComplete()));
|
||||
connect(updateTask, SIGNAL(failed(QString)), SLOT(onGameUpdateError(QString)));
|
||||
tDialog->exec(updateTask);
|
||||
|
@ -575,7 +575,7 @@ void MainWindow::startTask(Task *task)
|
|||
connect(task, SIGNAL(started()), SLOT(taskStart()));
|
||||
connect(task, SIGNAL(succeeded()), SLOT(taskEnd()));
|
||||
connect(task, SIGNAL(failed(QString)), SLOT(taskEnd()));
|
||||
task->startTask();
|
||||
task->start();
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue