mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-14 12:37:23 +00:00
GH-352 Make OneSix instance update downloads cancellable
This commit is contained in:
@@ -212,6 +212,7 @@ void InstanceWindow::onFailed(QString reason)
|
||||
void InstanceWindow::onProgressRequested(Task* task)
|
||||
{
|
||||
ProgressDialog progDialog(this);
|
||||
progDialog.setSkipButton(true, tr("Abort"));
|
||||
m_proc->proceed();
|
||||
progDialog.execWithTask(task);
|
||||
}
|
||||
|
||||
@@ -1185,6 +1185,7 @@ void MainWindow::finalizeInstance(InstancePtr inst)
|
||||
});
|
||||
if(update)
|
||||
{
|
||||
loadDialog.setSkipButton(true, tr("Abort"));
|
||||
loadDialog.execWithTask(update.get());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user