mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #350 Extra static function registerMetadata, so it can be called explicitly
This commit is contained in:
@@ -43,13 +43,8 @@ namespace BlackCore
|
||||
|
||||
QMap<QString, int> times;
|
||||
QTime time;
|
||||
time.start();
|
||||
registerMetadata();
|
||||
|
||||
BlackMisc::registerMetadata();
|
||||
BlackMisc::initResources();
|
||||
BlackSim::registerMetadata();
|
||||
BlackCore::registerMetadata();
|
||||
times.insert("Register metadata", time.restart());
|
||||
this->connect(QCoreApplication::instance(), &QCoreApplication::aboutToQuit, this, &CRuntime::gracefulShutdown);
|
||||
|
||||
// upfront reading of settings, as DBus server already relies on settings
|
||||
@@ -133,6 +128,14 @@ namespace BlackCore
|
||||
return (token == this->m_contextApplication->ping(token));
|
||||
}
|
||||
|
||||
void CRuntime::registerMetadata()
|
||||
{
|
||||
BlackMisc::registerMetadata();
|
||||
BlackMisc::initResources();
|
||||
BlackSim::registerMetadata();
|
||||
BlackCore::registerMetadata();
|
||||
}
|
||||
|
||||
bool CRuntime::parseCommandLine(const QString commandLine)
|
||||
{
|
||||
bool handled = false;
|
||||
|
||||
Reference in New Issue
Block a user