Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into curseforge-url-handle
This commit is contained in:
commit
bc0934a19c
2
.github/workflows/backport.yml
vendored
2
.github/workflows/backport.yml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
- name: Create backport PRs
|
- name: Create backport PRs
|
||||||
uses: korthout/backport-action@v1.3.1
|
uses: korthout/backport-action@v1.4.0
|
||||||
with:
|
with:
|
||||||
# Config README: https://github.com/korthout/backport-action#backport-action
|
# Config README: https://github.com/korthout/backport-action#backport-action
|
||||||
pull_description: |-
|
pull_description: |-
|
||||||
|
@ -1005,15 +1005,30 @@ static Meta::Version::Ptr getComponentVersion(const QString& uid, const QString&
|
|||||||
if (!vlist)
|
if (!vlist)
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
if (!vlist->isLoaded())
|
if (!vlist->isLoaded()) {
|
||||||
vlist->load(Net::Mode::Online);
|
QEventLoop loadVersionLoop;
|
||||||
|
auto task = vlist->getLoadTask();
|
||||||
|
QObject::connect(task.get(), &Task::finished, &loadVersionLoop, &QEventLoop::quit);
|
||||||
|
if (!task->isRunning())
|
||||||
|
task->start();
|
||||||
|
|
||||||
|
loadVersionLoop.exec();
|
||||||
|
}
|
||||||
|
|
||||||
auto ver = vlist->getVersion(version);
|
auto ver = vlist->getVersion(version);
|
||||||
if (!ver)
|
if (!ver)
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
if (!ver->isLoaded())
|
if (!ver->isLoaded()) {
|
||||||
|
QEventLoop loadVersionLoop;
|
||||||
ver->load(Net::Mode::Online);
|
ver->load(Net::Mode::Online);
|
||||||
|
auto task = ver->getCurrentTask();
|
||||||
|
QObject::connect(task.get(), &Task::finished, &loadVersionLoop, &QEventLoop::quit);
|
||||||
|
if (!task->isRunning())
|
||||||
|
task->start();
|
||||||
|
|
||||||
|
loadVersionLoop.exec();
|
||||||
|
}
|
||||||
|
|
||||||
return ver;
|
return ver;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user