GH-2124 First complete implementation, installing is working now! GH-2172 Added sorting
This commit is contained in:
parent
2d295d5afb
commit
b8ca36372b
16 changed files with 498 additions and 169 deletions
|
@ -9,8 +9,6 @@ FtbPackDownloader::FtbPackDownloader() {
|
|||
}
|
||||
|
||||
FtbPackDownloader::~FtbPackDownloader(){
|
||||
delete netJobContainer.get();
|
||||
netJobContainer.reset(nullptr);
|
||||
}
|
||||
|
||||
bool FtbPackDownloader::isValidPackSelected(){
|
||||
|
@ -22,7 +20,7 @@ bool FtbPackDownloader::isValidPackSelected(){
|
|||
return false;
|
||||
}
|
||||
|
||||
return other.oldVersions.contains(selectedVersion);
|
||||
return other.oldVersions.contains(selectedVersion) && !other.broken;
|
||||
}
|
||||
|
||||
QString FtbPackDownloader::getSuggestedInstanceName() {
|
||||
|
@ -104,3 +102,8 @@ void FtbPackDownloader::_downloadFailed(QString reason) {
|
|||
netJobContainer.reset();
|
||||
emit downloadFailed(reason);
|
||||
}
|
||||
|
||||
NetJobPtr FtbPackDownloader::getNetJob()
|
||||
{
|
||||
return netJobContainer;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue