ios fixes

This commit is contained in:
pokamest 2021-09-15 08:03:28 -07:00
parent 12b079df65
commit 9ae2e3fba2
28 changed files with 149639 additions and 39 deletions

View file

@ -99,6 +99,8 @@ bool Utils::processIsRunning(const QString& fileName)
}
return false;
#elif defined(Q_OS_IOS)
return false;
#else
QProcess process;
process.setProcessChannelMode(QProcess::MergedChannels);
@ -161,10 +163,12 @@ bool Utils::checkIpSubnetFormat(const QString &ip)
}
void Utils::killProcessByName(const QString &name)
{
{
qDebug().noquote() << "Kill process" << name;
#ifdef Q_OS_WIN
QProcess::execute(QString("taskkill /im %1 /f").arg(name));
#elif defined Q_OS_IOS
return;
#else
QProcess::execute(QString("pkill %1").arg(name));
#endif