mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +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
|
||||
const CSetupReader *sr = sApp->getSetupReader();
|
||||
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) :
|
||||
"No cache timestamp");
|
||||
}
|
||||
@@ -170,6 +171,7 @@ namespace BlackGui
|
||||
|
||||
const int r = m_copyFromOtherSwiftVersion->exec();
|
||||
Q_UNUSED(r);
|
||||
this->displaySetupCacheInfo();
|
||||
}
|
||||
|
||||
void CSetupLoadingDialog::onSetupHandlingCompleted(bool success)
|
||||
|
||||
Reference in New Issue
Block a user