From 24086fdfe92814c38da6d219916ee9d45d8ba581 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Wed, 6 Jan 2021 17:06:40 +1100 Subject: Implement #21 with cached pages Maybe in future we can make this work for all pages in history --- src/mainwindow.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mainwindow.hpp') diff --git a/src/mainwindow.hpp b/src/mainwindow.hpp index cfc35bf..1868eaf 100644 --- a/src/mainwindow.hpp +++ b/src/mainwindow.hpp @@ -29,13 +29,13 @@ struct CachedPage MimeType mime; - // TODO: last scroll position + int scroll_pos; // also: maybe compress page contents? May test // to see if it's worth it CachedPage(const QUrl &url, const QByteArray &body, const MimeType &mime) - : url(url), body(body), mime(mime) + : url(url), body(body), mime(mime), scroll_pos(-1) {} }; -- cgit v1.2.3