fix dir creation, change .log path
This commit is contained in:
@@ -48,6 +48,8 @@ void ConnectionLoader::doAutoConnect() {
|
||||
// Initialize the library
|
||||
main->logger->write(QObject::tr("Attempting to initialize library with ") + config->server);
|
||||
|
||||
|
||||
|
||||
// Check to see if there's an existing wallet
|
||||
if (litelib_wallet_exists(Settings::getChainName().toStdString().c_str())) {
|
||||
main->logger->write(QObject::tr("Using existing wallet."));
|
||||
|
||||
@@ -164,8 +164,8 @@ public:
|
||||
return 0;
|
||||
}
|
||||
|
||||
QCoreApplication::setOrganizationName("myhush.org");
|
||||
QCoreApplication::setApplicationName("SilentDragonLite");
|
||||
QCoreApplication::setOrganizationName("Hush");
|
||||
QCoreApplication::setApplicationName("Silentdragonlite");
|
||||
|
||||
QString locale = QLocale::system().name();
|
||||
locale.truncate(locale.lastIndexOf('_')); // Get the language code
|
||||
|
||||
@@ -36,9 +36,8 @@ MainWindow::MainWindow(QWidget *parent) :
|
||||
|
||||
this->slot_change_theme(theme_name);
|
||||
|
||||
|
||||
ui->setupUi(this);
|
||||
logger = new Logger(this, QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("/home/denio/silentdragonlite/silentdragonlite-wallet.debug.log"));
|
||||
logger = new Logger(this, QDir(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation)).filePath("silentdragonlite-wallet.log"));
|
||||
|
||||
// Status Bar
|
||||
setupStatusBar();
|
||||
@@ -694,7 +693,7 @@ void MainWindow::exportSeed() {
|
||||
// Wire up save button
|
||||
QObject::connect(pui.buttonBox->button(QDialogButtonBox::Save), &QPushButton::clicked, [=] () {
|
||||
QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"),
|
||||
"zcash-seed.txt");
|
||||
"Hush-seed.txt");
|
||||
QFile file(fileName);
|
||||
if (!file.open(QIODevice::WriteOnly)) {
|
||||
QMessageBox::information(this, tr("Unable to open file"), file.errorString());
|
||||
@@ -755,7 +754,7 @@ void MainWindow::exportKeys(QString addr) {
|
||||
// Wire up save button
|
||||
QObject::connect(pui.buttonBox->button(QDialogButtonBox::Save), &QPushButton::clicked, [=] () {
|
||||
QString fileName = QFileDialog::getSaveFileName(this, tr("Save File"),
|
||||
allKeys ? "zcash-all-privatekeys.txt" : "zcash-privatekey.txt");
|
||||
allKeys ? "Hush-all-privatekeys.txt" : "Hush-privatekey.txt");
|
||||
QFile file(fileName);
|
||||
if (!file.open(QIODevice::WriteOnly)) {
|
||||
QMessageBox::information(this, tr("Unable to open file"), file.errorString());
|
||||
|
||||
Reference in New Issue
Block a user