instancemanager: disable on macOS

We do not need to verify if an app instance already running
on macOS, because it is done by default. Moreover, it causes a crash
on the macOS app with enabled hardened runtime.

Gitlab: #578
Change-Id: Ic8aa6a136d394372890ed4010f4a3c7ffa8e9233
This commit is contained in:
kkostiuk
2022-01-01 13:42:11 -05:00
committed by Kateryna Kostiuk
parent 3db33c4f89
commit 6b7c25054d

View File

@@ -190,6 +190,23 @@ private:
};
};
#ifdef Q_OS_MACOS
InstanceManager::InstanceManager(MainApplication* mainApp)
: QObject(mainApp)
{}
InstanceManager::~InstanceManager() {}
bool
InstanceManager::tryToRun(const QByteArray& startUri)
{
return true;
}
void
InstanceManager::tryToKill()
{}
#else
InstanceManager::InstanceManager(MainApplication* mainApp)
: QObject(mainApp)
{
@@ -215,6 +232,7 @@ InstanceManager::tryToKill()
{
pimpl_->tryToKill();
}
#endif
#include "moc_instancemanager.cpp"
#include "instancemanager.moc"