mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Ref T199, do not display 0 timestamp and re-display timestamp after copy
This commit is contained in:
@@ -130,7 +130,8 @@ namespace BlackGui
|
|||||||
// reset if it was temporarily ignored
|
// reset if it was temporarily ignored
|
||||||
const CSetupReader *sr = sApp->getSetupReader();
|
const CSetupReader *sr = sApp->getSetupReader();
|
||||||
const QDateTime setupTs = sr->getSetupCacheTimestamp();
|
const QDateTime setupTs = sr->getSetupCacheTimestamp();
|
||||||
ui->le_SetupCache->setText(setupTs.isValid() ?
|
static const QDateTime zeroTime = QDateTime::fromMSecsSinceEpoch(0);
|
||||||
|
ui->le_SetupCache->setText(setupTs.isValid() && setupTs > zeroTime ?
|
||||||
setupTs.toString(Qt::ISODateWithMs) :
|
setupTs.toString(Qt::ISODateWithMs) :
|
||||||
"No cache timestamp");
|
"No cache timestamp");
|
||||||
}
|
}
|
||||||
@@ -170,6 +171,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
const int r = m_copyFromOtherSwiftVersion->exec();
|
const int r = m_copyFromOtherSwiftVersion->exec();
|
||||||
Q_UNUSED(r);
|
Q_UNUSED(r);
|
||||||
|
this->displaySetupCacheInfo();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CSetupLoadingDialog::onSetupHandlingCompleted(bool success)
|
void CSetupLoadingDialog::onSetupHandlingCompleted(bool success)
|
||||||
|
|||||||
Reference in New Issue
Block a user