From 0c4fd4700d6ee31f6b848d49a6aa7ebfa4a806fa Mon Sep 17 00:00:00 2001 From: dec05eba Date: Wed, 23 Nov 2022 20:41:40 +0100 Subject: Re-add item drawing height diff shifting to fix bumping in item drawing Add newline before codeblock in 4chan if previous line is not a newline. --- src/QuickMedia.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/QuickMedia.cpp') diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index ca69248..9e8211a 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -4548,8 +4548,11 @@ namespace QuickMedia { return image_board_post_data->post_id == navigate_to_post_id; }); - if(found_body_item_index != -1) + if(found_body_item_index == -1) { + show_notification("QuickMedia", "Could not find the post " + thread_page->post_id + " in the thread. It either doesn't exist or it has been deleted", Urgency::NORMAL); + } else { thread_body->set_selected_item(found_body_item_index); + } } // TODO: Instead of using stage here, use different pages for each stage -- cgit v1.2.3