updated to reflect proper api response on logout
This commit is contained in:
parent
67364cc528
commit
0a7105438b
3 changed files with 6 additions and 1 deletions
|
@ -157,6 +157,7 @@ NavigationPane {
|
|||
|
||||
onAuthorizationRequired: {
|
||||
loginSheet.open();
|
||||
timer.stop();
|
||||
}
|
||||
|
||||
onAuthorizationReceived: {
|
||||
|
@ -185,6 +186,7 @@ NavigationPane {
|
|||
timer.start();
|
||||
} else {
|
||||
loginSheet.open();
|
||||
timer.stop();
|
||||
}
|
||||
}
|
||||
function logout() {
|
||||
|
|
2
buildnum
2
buildnum
|
@ -1 +1 @@
|
|||
83
|
||||
84
|
|
@ -217,6 +217,9 @@ void Pnut::onAuthorizedRequestReady(QByteArray data, int id)
|
|||
{
|
||||
qDebug() << "Logout successful!";
|
||||
req_map.remove(id);
|
||||
m_appSettings->remove("access_token");
|
||||
m_appSettings->remove("username");
|
||||
emit authorizationRequired();
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
Reference in a new issue