aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-01-24 15:22:57 -0500
committerluigi1111 <luigi1111w@gmail.com>2022-01-24 15:22:57 -0500
commitc2f706a28abbe0c317589e80277d52bd2b25fe5b (patch)
tree009021a9bfea0f0a916594ae7e71b861b0c3f721 /src
parent4df925e8a82c72dd7b3211ca4fa096cfbd826355 (diff)
parent621c11925bb272675543b5ab428cc2ac6c0416ce (diff)
downloadmonzero-gui-c2f706a28abbe0c317589e80277d52bd2b25fe5b.tar.gz
monzero-gui-c2f706a28abbe0c317589e80277d52bd2b25fe5b.tar.xz
monzero-gui-c2f706a28abbe0c317589e80277d52bd2b25fe5b.zip
Merge pull request #3808
621c119 main: add compile time option to disable desktop entry dialog (selsta)
Diffstat (limited to 'src')
-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)