diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2021-03-15 12:57:36 +0100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-03-17 09:49:58 +0100 |
| commit | f60dac9d7ebb5b989aad67d67d5ab3ccef7d278c (patch) | |
| tree | e2f74ba184d14ee6302d89ce4d61c1972e733360 /src/kristall.hpp | |
| parent | 0d1fd257093c58bfb606aaac530aed3b0877f7fd (diff) | |
| download | kristall-f60dac9d7ebb5b989aad67d67d5ab3ccef7d278c.tar.gz | |
Adds option to have old or new session behaviour. Closes #187
Diffstat (limited to 'src/kristall.hpp')
| -rw-r--r-- | src/kristall.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kristall.hpp b/src/kristall.hpp index 73ed9e4..66de0e1 100644 --- a/src/kristall.hpp +++ b/src/kristall.hpp @@ -64,6 +64,11 @@ struct GenericSettings WarnAlways = -1, }; + enum SessionRestoreBehaviour { + NoSessionRestore = 0, + RestoreLastSession = 1, + }; + QString start_page = "about:favourites"; QString search_engine = "gemini://geminispace.info/search?%1"; Theme theme = Theme::light; @@ -102,6 +107,8 @@ struct GenericSettings int cache_life = 60; bool cache_unlimited_life = true; + SessionRestoreBehaviour session_restore_behaviour = RestoreLastSession; + void load(QSettings & settings); void save(QSettings & settings) const; }; |
