mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 14:07:35 +08:00
Ref T180, dot commands to set rendering setup
* enable parts/debug messages via dot command * allow to log to console via application context
This commit is contained in:
@@ -62,6 +62,7 @@ using namespace BlackMisc::Network;
|
||||
using namespace BlackGui::Components;
|
||||
using namespace BlackCore;
|
||||
using namespace BlackCore::Data;
|
||||
using namespace BlackCore::Context;
|
||||
|
||||
BlackGui::CGuiApplication *sGui = nullptr; // set by constructor
|
||||
|
||||
@@ -732,6 +733,14 @@ namespace BlackGui
|
||||
return true;
|
||||
}
|
||||
|
||||
void CGuiApplication::onCoreFacadeStarted()
|
||||
{
|
||||
if (this->supportsContexts())
|
||||
{
|
||||
connect(this->getIContextApplication(), &IContextApplication::requestDisplayOnConsole, this, &CGuiApplication::displayTextInConsole);
|
||||
}
|
||||
}
|
||||
|
||||
void CGuiApplication::checkNewVersion(bool onlyIfNew)
|
||||
{
|
||||
if (!m_installDialog)
|
||||
|
||||
@@ -224,6 +224,9 @@ namespace BlackGui
|
||||
//! Handle parsing of special GUI cmd arguments
|
||||
virtual bool parsingHookIn() override;
|
||||
|
||||
//! \copydoc BlackCore::CApplication::onCoreFacadeStarted
|
||||
virtual void onCoreFacadeStarted() override;
|
||||
|
||||
//! Check for a new version (update)
|
||||
void checkNewVersion(bool onlyIfNew);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user