quick linux fix

This commit is contained in:
Rasmus Karlsson 2018-05-26 13:38:25 +02:00
parent 90551acf37
commit 08cf701af3
2 changed files with 5 additions and 1 deletions

View file

@ -32,6 +32,10 @@ Window::Window(WindowType _type)
auto app = getApp();
app->accounts->Twitch.currentUserChanged.connect([this] {
if (this->userLabel == nullptr) {
return;
}
auto user = getApp()->accounts->Twitch.getCurrent();
if (user->isAnon()) {

View file

@ -42,7 +42,7 @@ protected:
bool event(QEvent *event) override;
private:
RippleEffectLabel *userLabel;
RippleEffectLabel *userLabel = nullptr;
WindowType type;
float dpi;