mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-17 15:22:10 +08:00
try this
This commit is contained in:
committed by
firestar5683
parent
4677300fde
commit
b0189d0828
@@ -293,7 +293,7 @@ void Installer::readProgress() {
|
||||
auto line = QString(proc.readAllStandardError());
|
||||
|
||||
int base = 0;
|
||||
for (const QPair kv : stages) {
|
||||
for (const QPair<QString, int> kv : stages) {
|
||||
if (line.startsWith(kv.first)) {
|
||||
auto perc = line.split(kv.first)[1].split("%")[0];
|
||||
int p = base + int(perc.toFloat() / 100. * kv.second);
|
||||
|
||||
Reference in New Issue
Block a user