aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorselsta <selsta@sent.at>2021-12-17 16:43:00 +0100
committerselsta <selsta@sent.at>2021-12-17 16:43:00 +0100
commit621c11925bb272675543b5ab428cc2ac6c0416ce (patch)
tree78c23d76e1411464a2c0b2e81f414862a115f4de /src/main
parentbddb9b0050ee086da5c7ee7fdb3627e0dff9f179 (diff)
downloadmonzero-gui-621c11925bb272675543b5ab428cc2ac6c0416ce.tar.gz
monzero-gui-621c11925bb272675543b5ab428cc2ac6c0416ce.tar.xz
monzero-gui-621c11925bb272675543b5ab428cc2ac6c0416ce.zip
main: add compile time option to disable desktop entry dialog
Diffstat (limited to 'src/main')
-rw-r--r--src/main/main.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp
index 165f9ae1..a6a77a5b 100644
--- a/src/main/main.cpp
+++ b/src/main/main.cpp
@@ -503,6 +503,12 @@ Verify update binary using 'shasum'-compatible (SHA256 algo) output signed by tw
#endif
engine.rootContext()->setContextProperty("builtWithScanner", builtWithScanner);
+ bool builtWithDesktopEntry = false;
+#ifdef WITH_DESKTOP_ENTRY
+ builtWithDesktopEntry = true;
+#endif
+ engine.rootContext()->setContextProperty("builtWithDesktopEntry", builtWithDesktopEntry);
+
engine.rootContext()->setContextProperty("moneroVersion", MONERO_VERSION_FULL);
// Load main window (context properties needs to be defined obove this line)