aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-06-08 19:18:50 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-06-08 19:18:50 +0200
commit51f46dce66ac660507dc7abad5506650bc863d7f (patch)
tree7f97264f0a9315b357b9c338519146b572b80a96 /src/main.cpp
parent7caffad75f0e7f7f1b1ce4d9523a67680e9b39a2 (diff)
downloadkristall-51f46dce66ac660507dc7abad5506650bc863d7f.tar.gz
Adds two new options for text display: gophermap rendering with text or icons, all text documents as text/plain, prepares option for text highlighting.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 2f49049..180a49b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -6,6 +6,8 @@
#include <QCommandLineParser>
#include <QDebug>
+QSettings global_settings { "xqTechnologies", "Kristall" };
+
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
@@ -13,6 +15,10 @@ int main(int argc, char *argv[])
QCommandLineParser cli_parser;
cli_parser.parse(app.arguments());
+ if(not global_settings.contains("start_page")) {
+ global_settings.setValue("start_page", "about:favourites");
+ }
+
MainWindow w(&app);
auto urls = cli_parser.positionalArguments();