aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-18 10:46:03 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-18 10:46:03 +0100
commit0722d176e4688e44f5572eefb29a6d6c4bb131fc (patch)
tree4fea927c9b3060c88dfece995e3e66c74f47ab9c
parent2525a18e852e1b92d26dfd73c7f5f677235c43d4 (diff)
Matrix: set window title to room name when using matrix
-rw-r--r--TODO3
-rw-r--r--src/QuickMedia.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/TODO b/TODO
index 448691d..82b04a9 100644
--- a/TODO
+++ b/TODO
@@ -136,4 +136,5 @@ Improve /sync by not removing cached data on initial sync, and also always appen
then add a gap between old messages from before sync and after sync so we can fetch the messages between the old messages and new messages and remove the gap when the fetched messages contains any of the old messages.
Fetching of previous messages should also be saved in the /sync file and messages fetched with get_message_by_id, which would cache embedded items and pinned messages; also cache users.
If manga page fails to download then show "failed to download image" as text and bind F5 to refresh (retry download).
-Use <img src to add custom emojis, and add setting for adding/removing custom emoji. \ No newline at end of file
+Use <img src to add custom emojis, and add setting for adding/removing custom emoji.
+Use window title when room name changes in matrix. \ No newline at end of file
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() {