mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +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();
|
||||
}
|
||||
|
||||
bool CWebDataServices::hasConnectedSwiftDb() const
|
||||
bool CWebDataServices::hasSuccesfullyConnectedSwiftDb() const
|
||||
{
|
||||
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
|
||||
QString getReadersLog(const QString separator = "\n") const;
|
||||
|
||||
//! Has already connect swift DB?
|
||||
bool hasConnectedSwiftDb() const;
|
||||
//! Has already successfully connect swift DB?
|
||||
bool hasSuccesfullyConnectedSwiftDb() const;
|
||||
|
||||
//! Reset the flags what was already signaled
|
||||
void resetSignalFlags();
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace BlackGui
|
||||
|
||||
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");
|
||||
return false;
|
||||
|
||||
@@ -428,7 +428,7 @@ namespace BlackGui
|
||||
CMenuAction CMenuActions::addMenuStash()
|
||||
{
|
||||
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!)");
|
||||
return this->addMenu(CIcons::appDbStash16(), txt, CMenuAction::pathStash());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user