aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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() {