From e9ed12e27bcbc4f4a256e8e3840c1022fd14872e Mon Sep 17 00:00:00 2001 From: Loren Burkholder Date: Fri, 24 Sep 2021 21:32:06 -0400 Subject: QML the join room dialog --- src/ui/NhekoGlobalObject.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/ui/NhekoGlobalObject.cpp') diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp index d687a308..11fc5681 100644 --- a/src/ui/NhekoGlobalObject.cpp +++ b/src/ui/NhekoGlobalObject.cpp @@ -21,6 +21,7 @@ Nheko::Nheko() connect( UserSettings::instance().get(), &UserSettings::themeChanged, this, &Nheko::colorsChanged); connect(ChatPage::instance(), &ChatPage::contentLoaded, this, &Nheko::updateUserProfile); + connect(this, &Nheko::joinRoom, ChatPage::instance(), &ChatPage::joinRoom); } void @@ -96,13 +97,6 @@ Nheko::openCreateRoomDialog() const [](const mtx::requests::CreateRoom &req) { ChatPage::instance()->createRoom(req); }); } -void -Nheko::openJoinRoomDialog() const -{ - MainWindow::instance()->openJoinRoomDialog( - [](const QString &room_id) { ChatPage::instance()->joinRoom(room_id); }); -} - void Nheko::reparent(QWindow *win) const { -- cgit 1.5.1