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:
@@ -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:;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user