mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
changed "justinfanXXX" to "anonymous"
This commit is contained in:
parent
e5be1d1286
commit
90551acf37
|
@ -31,11 +31,17 @@ Window::Window(WindowType _type)
|
|||
{
|
||||
auto app = getApp();
|
||||
|
||||
app->accounts->Twitch.currentUsername.connect([this](const std::string &newUsername, auto) {
|
||||
if (newUsername.empty()) {
|
||||
app->accounts->Twitch.currentUserChanged.connect([this] {
|
||||
auto user = getApp()->accounts->Twitch.getCurrent();
|
||||
|
||||
if (user->isAnon()) {
|
||||
this->refreshWindowTitle("Not logged in");
|
||||
|
||||
this->userLabel->getLabel().setText("anonymous");
|
||||
} else {
|
||||
this->refreshWindowTitle(QString::fromStdString(newUsername));
|
||||
this->refreshWindowTitle(user->getUserName());
|
||||
|
||||
this->userLabel->getLabel().setText(user->getUserName());
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -48,10 +54,6 @@ Window::Window(WindowType _type)
|
|||
app->windows->showAccountSelectPopup(
|
||||
this->userLabel->mapToGlobal(this->userLabel->rect().bottomLeft())); //
|
||||
});
|
||||
|
||||
app->accounts->Twitch.currentUserChanged.connect([=] {
|
||||
this->userLabel->getLabel().setText(app->accounts->Twitch.getCurrent()->getUserName());
|
||||
});
|
||||
}
|
||||
|
||||
if (_type == Window::Main) {
|
||||
|
|
Loading…
Reference in a new issue