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:
@@ -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!");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user