From 0a7105438b52731dc58fd0f3dc5d049f4bca43a8 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Sat, 1 Oct 2016 12:27:21 -0700 Subject: [PATCH] updated to reflect proper api response on logout --- assets/StreamTab.qml | 2 ++ buildnum | 2 +- src/Pnut.cpp | 3 +++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/assets/StreamTab.qml b/assets/StreamTab.qml index 38748e9..7b943da 100644 --- a/assets/StreamTab.qml +++ b/assets/StreamTab.qml @@ -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() { diff --git a/buildnum b/buildnum index 24af08a..3ca9062 100644 --- a/buildnum +++ b/buildnum @@ -1 +1 @@ -83 \ No newline at end of file +84 \ No newline at end of file diff --git a/src/Pnut.cpp b/src/Pnut.cpp index a4671e2..0514fcf 100644 --- a/src/Pnut.cpp +++ b/src/Pnut.cpp @@ -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; }