mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
Add warning about expire and redesign warning/error popup
Fixes Github Issue #38
This commit is contained in:
committed by
Mat Sutcliffe
parent
189bb15936
commit
1d4aa96e9b
@@ -97,6 +97,11 @@ namespace BlackConfig
|
||||
return QDateTime::currentDateTime() > getEol();
|
||||
}
|
||||
|
||||
int CBuildConfig::daysTillLifetimeExpiry()
|
||||
{
|
||||
return QDateTime::currentDateTime().daysTo(getEol());
|
||||
}
|
||||
|
||||
const QString boolToYesNo(bool v)
|
||||
{
|
||||
return v ? QStringLiteral("yes") : QStringLiteral("no");
|
||||
|
||||
@@ -109,6 +109,9 @@ namespace BlackConfig
|
||||
//! Lifetime ended?
|
||||
static bool isLifetimeExpired();
|
||||
|
||||
//! Days till lifetime end
|
||||
static int daysTillLifetimeExpiry();
|
||||
|
||||
//! Vatsim client id
|
||||
static int vatsimClientId(); // defined in buildconfig_gen.cpp.in
|
||||
|
||||
|
||||
Reference in New Issue
Block a user