UI: Simplify client restarting script

"for /L %i" is not working on Windows 7.
This commit is contained in:
Nodir Temirkhodjaev 2024-05-28 19:43:19 +03:00
parent 9803255f31
commit a6ba0779dd

View File

@ -193,9 +193,8 @@ void OsUtil::restartClient()
{
const QFileInfo fi(QCoreApplication::applicationFilePath());
const auto command = QString("for /L %i in (1,1,30) do ("
"ping -n 2 127.0.0.1 >NUL"
" & if not exist inst.tmp start %1 --launch & exit)")
const auto command = QString("ping -n 3 127.0.0.1 >NUL"
" & if not exist inst.tmp start %1 --launch")
.arg(fi.fileName());
runCommand(command, /*workingDir=*/fi.path());