mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-09-08 11:31:32 -04:00
Use Task::getState
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
06aece111a
commit
a195b9981d
@ -299,16 +299,10 @@ void LaunchController::login()
|
||||
progDialog.setSkipButton(true, tr("Abort"));
|
||||
|
||||
auto task = accountToCheck->currentTask();
|
||||
|
||||
bool aborted = false;
|
||||
auto abortListener = connect(task.get(), &Task::aborted, [&aborted] { aborted = true; });
|
||||
|
||||
progDialog.execWithTask(task.get());
|
||||
|
||||
disconnect(abortListener);
|
||||
|
||||
// don't retry if aborted
|
||||
if (aborted)
|
||||
if (task->getState() == Task::State::AbortedByUser)
|
||||
tryagain = false;
|
||||
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user