Browse Source

Set our own org/app names which fixes bug with talking to sevenseas senttxstore file

pull/45/head
Jonathan "Duke" Leto 5 years ago
parent
commit
359087193e
  1. 11
      src/main.cpp

11
src/main.cpp

@ -148,7 +148,7 @@ public:
// Command line parser // Command line parser
QCommandLineParser parser; QCommandLineParser parser;
parser.setApplicationDescription("Shielded desktop wallet and embedded full node for Zcash"); parser.setApplicationDescription("Shielded desktop wallet and embedded full node for Hush");
parser.addHelpOption(); parser.addHelpOption();
// A boolean option for running it headless // A boolean option for running it headless
@ -156,11 +156,11 @@ public:
parser.addOption(headlessOption); parser.addOption(headlessOption);
// No embedded will disable the embedded zcashd node // No embedded will disable the embedded zcashd node
QCommandLineOption noembeddedOption(QStringList() << "no-embedded", "Disable embedded zcashd"); QCommandLineOption noembeddedOption(QStringList() << "no-embedded", "Disable embedded hushd");
parser.addOption(noembeddedOption); parser.addOption(noembeddedOption);
// Positional argument will specify a zcash payment URI // Positional argument will specify a zcash payment URI
parser.addPositionalArgument("zcashURI", "An optional HUSH URI to pay"); parser.addPositionalArgument("hushURI", "An optional HUSH URI to pay");
parser.process(a); parser.process(a);
@ -173,8 +173,8 @@ public:
return 0; return 0;
} }
QCoreApplication::setOrganizationName("pirate-black-org"); QCoreApplication::setOrganizationName("Hush");
QCoreApplication::setApplicationName("seven-seas"); QCoreApplication::setApplicationName("silent-dragon");
QString locale = QLocale::system().name(); QString locale = QLocale::system().name();
locale.truncate(locale.lastIndexOf('_')); // Get the language code locale.truncate(locale.lastIndexOf('_')); // Get the language code
@ -187,6 +187,7 @@ public:
QIcon icon(":/icons/res/icon.ico"); QIcon icon(":/icons/res/icon.ico");
QApplication::setWindowIcon(icon); QApplication::setWindowIcon(icon);
// TODO: update for SD
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
QFontDatabase::addApplicationFont(":/fonts/res/Ubuntu-R.ttf"); QFontDatabase::addApplicationFont(":/fonts/res/Ubuntu-R.ttf");
qApp->setFont(QFont("Ubuntu", 11, QFont::Normal, false)); qApp->setFont(QFont("Ubuntu", 11, QFont::Normal, false));

Loading…
Cancel
Save