|
@ -159,6 +159,11 @@ public: |
|
|
QCommandLineOption noembeddedOption(QStringList() << "no-embedded", "Disable embedded zcashd"); |
|
|
QCommandLineOption noembeddedOption(QStringList() << "no-embedded", "Disable embedded zcashd"); |
|
|
parser.addOption(noembeddedOption); |
|
|
parser.addOption(noembeddedOption); |
|
|
|
|
|
|
|
|
|
|
|
// Add an option to specify the conf file
|
|
|
|
|
|
QCommandLineOption confOption(QStringList() << "conf", "Use the zcash.conf specified instead of looking for the default one.", |
|
|
|
|
|
"confFile"); |
|
|
|
|
|
parser.addOption(confOption); |
|
|
|
|
|
|
|
|
// Positional argument will specify a zcash payment URI
|
|
|
// Positional argument will specify a zcash payment URI
|
|
|
parser.addPositionalArgument("zcashURI", "An optional zcash URI to pay"); |
|
|
parser.addPositionalArgument("zcashURI", "An optional zcash URI to pay"); |
|
|
|
|
|
|
|
@ -217,6 +222,11 @@ public: |
|
|
Settings::getInstance()->setUseEmbedded(true); |
|
|
Settings::getInstance()->setUseEmbedded(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Check to see if a conf location was specified
|
|
|
|
|
|
if (parser.isSet(confOption)) { |
|
|
|
|
|
Settings::getInstance()->setUsingZcashConf(parser.value(confOption)); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
w = new MainWindow(); |
|
|
w = new MainWindow(); |
|
|
w->setWindowTitle("ZecWallet v" + QString(APP_VERSION)); |
|
|
w->setWindowTitle("ZecWallet v" + QString(APP_VERSION)); |
|
|
|
|
|
|
|
|