Issue #115 Blink the disconnect button to catch the user's attention

This commit is contained in:
Mat Sutcliffe
2021-09-10 18:21:34 +01:00
parent fb1d81afe6
commit abc96590e4
4 changed files with 42 additions and 0 deletions

View File

@@ -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());
}
}
}