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; }