diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-18 10:46:03 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-18 10:46:03 +0100 |
commit | 0722d176e4688e44f5572eefb29a6d6c4bb131fc (patch) | |
tree | 4fea927c9b3060c88dfece995e3e66c74f47ab9c /src | |
parent | 2525a18e852e1b92d26dfd73c7f5f677235c43d4 (diff) |
Matrix: set window title to room name when using matrix
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index dd5dece..7cface4 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -3119,6 +3119,7 @@ namespace QuickMedia { void Program::chat_page(MatrixChatPage *matrix_chat_page, RoomData *current_room) { assert(strcmp(plugin_name, "matrix") == 0); + window.setTitle("QuickMedia - matrix - " + current_room->get_name()); auto video_page = std::make_unique<MatrixVideoPage>(this); @@ -4239,6 +4240,7 @@ namespace QuickMedia { // TODO: Instead of doing this, exit this current function and navigate to chat login page instead. //delete current_plugin; //current_plugin = new Matrix(); + window.setTitle("QuickMedia - matrix"); current_page = PageType::CHAT_LOGIN; chat_login_page(); if(current_page == PageType::CHAT) @@ -4632,6 +4634,7 @@ namespace QuickMedia { chat_page_end: previous_messages_future.cancel(); cleanup_tasks(); + window.setTitle("QuickMedia - matrix"); } void Program::after_matrix_login_page() { |