mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +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");
|
||||
|
||||
ui->setupUi(this);
|
||||
admitCaches(); // in background
|
||||
|
||||
ui->lbl_DatabaseUrl->setTextFormat(Qt::RichText);
|
||||
ui->lbl_DatabaseUrl->setTextInteractionFlags(Qt::TextBrowserInteraction);
|
||||
@@ -190,6 +191,11 @@ namespace BlackGui
|
||||
sGui->getWebDataServices()->synchronizeDbCaches(CEntityFlags::AllDbEntities);
|
||||
}
|
||||
|
||||
void CDbLoadOverviewComponent::admitCaches()
|
||||
{
|
||||
sGui->getWebDataServices()->admitDbCaches(CEntityFlags::AllDbEntities);
|
||||
}
|
||||
|
||||
void CDbLoadOverviewComponent::ps_reloadPressed()
|
||||
{
|
||||
if (this->m_reloading) { return; }
|
||||
|
||||
@@ -69,9 +69,12 @@ namespace BlackGui
|
||||
//! Formatted count for entity
|
||||
static QString dbCountForEntity(BlackMisc::Network::CEntityFlags::Entity entity);
|
||||
|
||||
//! Syncronize caches
|
||||
//! Synchronize caches
|
||||
static void synchronizeCaches();
|
||||
|
||||
//! Admit caches
|
||||
static void admitCaches();
|
||||
|
||||
private slots:
|
||||
//! Reload
|
||||
void ps_reloadPressed();
|
||||
|
||||
Reference in New Issue
Block a user