mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Ref T264, better display of other installed swift versions
* improved CApplicationInfo, added property support * renamed functions
This commit is contained in:
@@ -133,7 +133,7 @@ namespace BlackCore
|
||||
if (withMetadata) { CApplication::registerMetadata(); }
|
||||
|
||||
// unit test
|
||||
if (this->getApplicationInfo().application() == CApplicationInfo::UnitTest)
|
||||
if (this->getApplicationInfo().getApplication() == CApplicationInfo::UnitTest)
|
||||
{
|
||||
const QString tempPath(this->getTemporaryDirectory());
|
||||
BlackMisc::setMockCacheRootDirectory(tempPath);
|
||||
@@ -251,7 +251,7 @@ namespace BlackCore
|
||||
|
||||
bool CApplication::isAlreadyRunning() const
|
||||
{
|
||||
return getRunningApplications().containsBy([this](const CApplicationInfo & info) { return info.application() == getSwiftApplication(); });
|
||||
return getRunningApplications().containsBy([this](const CApplicationInfo & info) { return info.getApplication() == getSwiftApplication(); });
|
||||
}
|
||||
|
||||
bool CApplication::isShuttingDown() const
|
||||
|
||||
@@ -143,7 +143,7 @@ namespace BlackCore
|
||||
void setSingleApplication(bool singleApplication);
|
||||
|
||||
//! swift application running
|
||||
BlackMisc::CApplicationInfo::Application getSwiftApplication() const { return m_applicationInfo.application(); }
|
||||
BlackMisc::CApplicationInfo::Application getSwiftApplication() const { return m_applicationInfo.getApplication(); }
|
||||
|
||||
//! Executable names for the given applications
|
||||
QString getExecutableForApplication(BlackMisc::CApplicationInfo::Application application) const;
|
||||
|
||||
Reference in New Issue
Block a user