mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 04:35:41 +08:00
Issue #115 Hide the logoff timer when it's not counting down
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user