Issue #115 Hide the logoff timer when it's not counting down

This commit is contained in:
Mat Sutcliffe
2021-09-10 18:20:16 +01:00
parent 07fa2d47a3
commit fb1d81afe6
2 changed files with 5 additions and 0 deletions

View File

@@ -225,6 +225,7 @@ namespace BlackGui
void CLoginComponent::loginCancelled() void CLoginComponent::loginCancelled()
{ {
m_logoffCountdownTimer.stop(); m_logoffCountdownTimer.stop();
ui->fr_TimeoutConnected->hide();
this->setLogoffCountdown(); // reset time this->setLogoffCountdown(); // reset time
this->closeOverlay(); this->closeOverlay();
emit this->loginOrLogoffCancelled(); emit this->loginOrLogoffCancelled();
@@ -523,6 +524,7 @@ namespace BlackGui
ui->pb_LogoffTimeout->setValue(m_logoffIntervalSeconds); ui->pb_LogoffTimeout->setValue(m_logoffIntervalSeconds);
m_logoffCountdownTimer.setInterval(1000); m_logoffCountdownTimer.setInterval(1000);
m_logoffCountdownTimer.start(); m_logoffCountdownTimer.start();
ui->fr_TimeoutConnected->show();
} }
void CLoginComponent::setOwnModelAndIcaoValues(const CAircraftModel &ownModel) void CLoginComponent::setOwnModelAndIcaoValues(const CAircraftModel &ownModel)

View File

@@ -778,6 +778,9 @@
</item> </item>
<item> <item>
<widget class="QFrame" name="fr_TimeoutConnected"> <widget class="QFrame" name="fr_TimeoutConnected">
<property name="visible">
<bool>false</bool>
</property>
<property name="frameShape"> <property name="frameShape">
<enum>QFrame::StyledPanel</enum> <enum>QFrame::StyledPanel</enum>
</property> </property>