Merge pull request #15 from kozyilmaz/macos

[macOS] zcash.conf is located in $HOME/Library/Application Support
This commit is contained in:
adityapk00
2018-10-26 09:03:25 -07:00
committed by GitHub

View File

@@ -101,6 +101,8 @@ bool Settings::loadFromFile() {
#ifdef Q_OS_LINUX
confLocation = QStandardPaths::locate(QStandardPaths::HomeLocation, ".zcash/zcash.conf");
#elif defined(Q_OS_DARWIN)
confLocation = QStandardPaths::locate(QStandardPaths::HomeLocation, "/Library/Application Support/Zcash/zcash.conf");
#else
confLocation = QStandardPaths::locate(QStandardPaths::AppDataLocation, "../../Zcash/zcash.conf");
#endif