Improve "Login expired!" message (#2029)

* feat: improve "Login expired!" message

Since this message occurs when the OAuth token becomes invalid, users
have to re-add their account in order to continue using the application.
The previous message did not make this clear enough, often leading to
confusion and questions by users.

This commit changes the system message to more clear about what the user
has to do, and adds a link that opens the "Accounts" page in the
preferences.

* Update changelog

* Update ChannelView.cpp

Co-authored-by: fourtf <tf.four@gmail.com>
This commit is contained in:
Leon Richardt
2020-10-04 17:36:38 +02:00
committed by GitHub
parent 53a784eb1b
commit aff59495df
4 changed files with 28 additions and 3 deletions
+7
View File
@@ -38,6 +38,7 @@
#include "util/Twitch.hpp"
#include "widgets/Scrollbar.hpp"
#include "widgets/TooltipWidget.hpp"
#include "widgets/dialogs/SettingsDialog.hpp"
#include "widgets/dialogs/UserInfoPopup.hpp"
#include "widgets/helper/EffectLabel.hpp"
#include "widgets/splits/Split.hpp"
@@ -1879,6 +1880,12 @@ void ChannelView::handleLinkClick(QMouseEvent *event, const Link &link,
case Link::AutoModDeny: {
getApp()->accounts->twitch.getCurrent()->autoModDeny(link.value);
}
break;
case Link::OpenAccountsPage: {
SettingsDialog::showDialog(SettingsDialogPreference::Accounts);
}
break;
default:;
}