1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

keep screen on

This commit is contained in:
Laserlicht
2025-08-31 14:02:19 +02:00
parent 759f207d8a
commit 2048806753
4 changed files with 35 additions and 0 deletions

View File

@@ -443,10 +443,12 @@ void FirstLaunchView::extractGogDataAsync(QString filePathBin, QString filePathE
if(errorText.isEmpty())
{
logGlobal->info("Performing extraction using innoextract...");
Helper::keepScreenOn(true);
errorText = Innoextract::extract(tmpFileExe, tempDir.path(), [this](float progress) {
ui->progressBarGog->setValue(progress * 100);
qApp->processEvents();
});
Helper::keepScreenOn(false);
logGlobal->info("Extraction done!");
}