From d83c0123ed3e51ef1e8d6a164e87343dd5335331 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Thu, 17 Sep 2020 02:10:10 +0200 Subject: Show error message on failure to load image for same page Show title of manga when viewing pages --- include/ImageViewer.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ImageViewer.hpp b/include/ImageViewer.hpp index 18faa9c..7fe4921 100644 --- a/include/ImageViewer.hpp +++ b/include/ImageViewer.hpp @@ -33,7 +33,7 @@ namespace QuickMedia { class ImageViewer { public: - ImageViewer(Manga *manga, const std::string &images_url, const std::string &chapter_title, int current_page, const Path &chapter_cache_dir, sf::Font *font); + ImageViewer(Manga *manga, const std::string &images_url, const std::string &content_title, const std::string &chapter_title, int current_page, const Path &chapter_cache_dir, sf::Font *font); ImageViewerAction draw(sf::RenderWindow &window); // Returns page as 1 indexed int get_focused_page() const; @@ -46,6 +46,7 @@ namespace QuickMedia { int num_pages; int page_center; + std::string content_title; std::string chapter_title; Path chapter_cache_dir; -- cgit v1.2.3