summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-05-22 15:19:44 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-05-22 15:19:44 +0200
commit6112badb087e424d6a6f82301922ccd2c93e178c (patch)
tree3608e8d7d7e55770559659eb3cae99e5e442497e /src/ui
parentFix device list not showing up and UserProfile blocking the window (diff)
downloadnheko-6112badb087e424d6a6f82301922ccd2c93e178c.tar.xz
Reenable userInfo settings menu
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/NhekoGlobalObject.cpp5
-rw-r--r--src/ui/NhekoGlobalObject.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp

index 70abfbb8..fd572b4b 100644 --- a/src/ui/NhekoGlobalObject.cpp +++ b/src/ui/NhekoGlobalObject.cpp
@@ -100,6 +100,11 @@ Nheko::openLink(QString link) const QDesktopServices::openUrl(url); } } +void +Nheko::setStatusMessage(QString msg) const +{ + ChatPage::instance()->setStatus(msg); +} UserProfile * Nheko::currentUser() const diff --git a/src/ui/NhekoGlobalObject.h b/src/ui/NhekoGlobalObject.h
index fc35fe22..593514fa 100644 --- a/src/ui/NhekoGlobalObject.h +++ b/src/ui/NhekoGlobalObject.h
@@ -39,6 +39,7 @@ public: UserProfile *currentUser() const; Q_INVOKABLE void openLink(QString link) const; + Q_INVOKABLE void setStatusMessage(QString msg) const; public slots: void updateUserProfile();