mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
Minor adjustments based on a slack discussion with MS
(already call admit in ctor to start loading)
This commit is contained in:
@@ -30,6 +30,7 @@ namespace BlackGui
|
|||||||
Q_ASSERT_X(sGui->getWebDataServices(), Q_FUNC_INFO, "no data services");
|
Q_ASSERT_X(sGui->getWebDataServices(), Q_FUNC_INFO, "no data services");
|
||||||
|
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
admitCaches(); // in background
|
||||||
|
|
||||||
ui->lbl_DatabaseUrl->setTextFormat(Qt::RichText);
|
ui->lbl_DatabaseUrl->setTextFormat(Qt::RichText);
|
||||||
ui->lbl_DatabaseUrl->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
ui->lbl_DatabaseUrl->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||||
@@ -190,6 +191,11 @@ namespace BlackGui
|
|||||||
sGui->getWebDataServices()->synchronizeDbCaches(CEntityFlags::AllDbEntities);
|
sGui->getWebDataServices()->synchronizeDbCaches(CEntityFlags::AllDbEntities);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void CDbLoadOverviewComponent::admitCaches()
|
||||||
|
{
|
||||||
|
sGui->getWebDataServices()->admitDbCaches(CEntityFlags::AllDbEntities);
|
||||||
|
}
|
||||||
|
|
||||||
void CDbLoadOverviewComponent::ps_reloadPressed()
|
void CDbLoadOverviewComponent::ps_reloadPressed()
|
||||||
{
|
{
|
||||||
if (this->m_reloading) { return; }
|
if (this->m_reloading) { return; }
|
||||||
|
|||||||
@@ -69,9 +69,12 @@ namespace BlackGui
|
|||||||
//! Formatted count for entity
|
//! Formatted count for entity
|
||||||
static QString dbCountForEntity(BlackMisc::Network::CEntityFlags::Entity entity);
|
static QString dbCountForEntity(BlackMisc::Network::CEntityFlags::Entity entity);
|
||||||
|
|
||||||
//! Syncronize caches
|
//! Synchronize caches
|
||||||
static void synchronizeCaches();
|
static void synchronizeCaches();
|
||||||
|
|
||||||
|
//! Admit caches
|
||||||
|
static void admitCaches();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
//! Reload
|
//! Reload
|
||||||
void ps_reloadPressed();
|
void ps_reloadPressed();
|
||||||
|
|||||||
Reference in New Issue
Block a user