diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-01-06 17:06:40 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-06 10:51:18 +0100 |
| commit | 24086fdfe92814c38da6d219916ee9d45d8ba581 (patch) | |
| tree | 35485e2fb8e33ea117c8f81d332d9c72aa143c9e /src/mainwindow.hpp | |
| parent | 7bb342914db3894ed9fbc0855a2c0ad5ee8d999d (diff) | |
| download | kristall-24086fdfe92814c38da6d219916ee9d45d8ba581.tar.gz | |
Implement #21 with cached pages
Maybe in future we can make this work for all pages in history
Diffstat (limited to 'src/mainwindow.hpp')
| -rw-r--r-- | src/mainwindow.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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) {} }; |
