mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Renamed function to hasSuccesfullyConnectedSwiftDb()
This commit is contained in:
committed by
Mathew Sutcliffe
parent
1aa8cfb1e8
commit
52caf795d1
@@ -165,7 +165,7 @@ namespace BlackCore
|
|||||||
initSharedInfoObjectReaderAndTriggerRead();
|
initSharedInfoObjectReaderAndTriggerRead();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool CWebDataServices::hasConnectedSwiftDb() const
|
bool CWebDataServices::hasSuccesfullyConnectedSwiftDb() const
|
||||||
{
|
{
|
||||||
if (!m_icaoDataReader && !m_modelDataReader && !m_airportDataReader && !m_dbInfoDataReader) { return false; }
|
if (!m_icaoDataReader && !m_modelDataReader && !m_airportDataReader && !m_dbInfoDataReader) { return false; }
|
||||||
|
|
||||||
|
|||||||
@@ -398,8 +398,8 @@ namespace BlackCore
|
|||||||
//! For all available readers the log info is generated
|
//! For all available readers the log info is generated
|
||||||
QString getReadersLog(const QString separator = "\n") const;
|
QString getReadersLog(const QString separator = "\n") const;
|
||||||
|
|
||||||
//! Has already connect swift DB?
|
//! Has already successfully connect swift DB?
|
||||||
bool hasConnectedSwiftDb() const;
|
bool hasSuccesfullyConnectedSwiftDb() const;
|
||||||
|
|
||||||
//! Reset the flags what was already signaled
|
//! Reset the flags what was already signaled
|
||||||
void resetSignalFlags();
|
void resetSignalFlags();
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
bool CDataInfoAreaComponent::writeDbDataToResourceDir() const
|
bool CDataInfoAreaComponent::writeDbDataToResourceDir() const
|
||||||
{
|
{
|
||||||
if (!sGui || !sGui->getWebDataServices()->hasConnectedSwiftDb())
|
if (!sGui || !sGui->getWebDataServices()->hasSuccesfullyConnectedSwiftDb())
|
||||||
{
|
{
|
||||||
CLogMessage(this).warning("No connection to DB yet, no new data loaded which can be written");
|
CLogMessage(this).warning("No connection to DB yet, no new data loaded which can be written");
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -428,7 +428,7 @@ namespace BlackGui
|
|||||||
CMenuAction CMenuActions::addMenuStash()
|
CMenuAction CMenuActions::addMenuStash()
|
||||||
{
|
{
|
||||||
if (this->containsMenu(CMenuAction::pathStash())) { return CMenuAction(); }
|
if (this->containsMenu(CMenuAction::pathStash())) { return CMenuAction(); }
|
||||||
const bool canConnectDb = sGui->getWebDataServices()->hasConnectedSwiftDb();
|
const bool canConnectDb = sGui->getWebDataServices()->hasSuccesfullyConnectedSwiftDb();
|
||||||
const QString txt(canConnectDb ? "Stash tools" : "Stash tools (Warning: no DB!)");
|
const QString txt(canConnectDb ? "Stash tools" : "Stash tools (Warning: no DB!)");
|
||||||
return this->addMenu(CIcons::appDbStash16(), txt, CMenuAction::pathStash());
|
return this->addMenu(CIcons::appDbStash16(), txt, CMenuAction::pathStash());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user