mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +08:00
Issue #115 Blink the disconnect button to catch the user's attention
This commit is contained in:
@@ -258,7 +258,13 @@ void SwiftGuiStd::loginRequested()
|
||||
}
|
||||
else
|
||||
{
|
||||
const bool changed = MainPageLogin != ui->sw_MainMiddle->currentIndex();
|
||||
this->setMainPage(MainPageLogin);
|
||||
if (!changed)
|
||||
{
|
||||
// fake changed signal to trigger blinking disconnect button (issue #115)
|
||||
emit this->currentMainInfoAreaChanged(ui->sw_MainMiddle->currentWidget());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user