mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +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()
|
||||
{
|
||||
m_logoffCountdownTimer.stop();
|
||||
ui->fr_TimeoutConnected->hide();
|
||||
this->setLogoffCountdown(); // reset time
|
||||
this->closeOverlay();
|
||||
emit this->loginOrLogoffCancelled();
|
||||
@@ -523,6 +524,7 @@ namespace BlackGui
|
||||
ui->pb_LogoffTimeout->setValue(m_logoffIntervalSeconds);
|
||||
m_logoffCountdownTimer.setInterval(1000);
|
||||
m_logoffCountdownTimer.start();
|
||||
ui->fr_TimeoutConnected->show();
|
||||
}
|
||||
|
||||
void CLoginComponent::setOwnModelAndIcaoValues(const CAircraftModel &ownModel)
|
||||
|
||||
@@ -778,6 +778,9 @@
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QFrame" name="fr_TimeoutConnected">
|
||||
<property name="visible">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
|
||||
Reference in New Issue
Block a user