main: add compile time option to disable desktop entry dialog

This commit is contained in:
selsta
2021-12-17 16:43:00 +01:00
parent bddb9b0050
commit 621c11925b
3 changed files with 13 additions and 1 deletions

View File

@@ -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)