From 0722d176e4688e44f5572eefb29a6d6c4bb131fc Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 18 Nov 2020 10:46:03 +0100 Subject: Matrix: set window title to room name when using matrix --- TODO | 3 ++- src/QuickMedia.cpp | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) 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 get_name()); auto video_page = std::make_unique(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() { -- cgit v1.2.3