From 621c11925bb272675543b5ab428cc2ac6c0416ce Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 17 Dec 2021 16:43:00 +0100 Subject: main: add compile time option to disable desktop entry dialog --- src/main/main.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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) -- cgit v1.2.3