aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaquee <jaquee.monero@gmail.com>2016-11-29 17:06:06 +0100
committerJaquee <jaquee.monero@gmail.com>2016-11-29 17:06:06 +0100
commit1a610db4318ca9b3d3d06297818dce5c9cd45ede (patch)
treed355d40fc136dd45e44ca71400fc6485d762a45b
parent26abdee5c47017a80117b1bed5ee36586a240c62 (diff)
downloadmonzero-gui-1a610db4318ca9b3d3d06297818dce5c9cd45ede.tar.gz
monzero-gui-1a610db4318ca9b3d3d06297818dce5c9cd45ede.tar.xz
monzero-gui-1a610db4318ca9b3d3d06297818dce5c9cd45ede.zip
add isWindows property
-rw-r--r--main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index fe42cb61..d5efc639 100644
--- a/main.cpp
+++ b/main.cpp
@@ -110,12 +110,14 @@ int main(int argc, char *argv[])
// to save the wallet file (.keys, .bin), they have to be user-accessible for
// backups - I reckon we save that in My Documents\Monero Accounts\ on
// Windows, ~/Monero Accounts/ on nix / osx
-
+ bool isWindows = false;
#ifdef Q_OS_WIN
+ isWindows = true;
QStringList moneroAccountsRootDir = QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation);
#elif defined(Q_OS_UNIX)
QStringList moneroAccountsRootDir = QStandardPaths::standardLocations(QStandardPaths::HomeLocation);
#endif
+ engine.rootContext()->setContextProperty("isWindows", isWindows);
if (!moneroAccountsRootDir.empty()) {
QString moneroAccountsDir = moneroAccountsRootDir.at(0) + "/Monero/wallets";