add a first Button for a new HushChat Address on chattab

This commit is contained in:
DenioD
2020-05-07 21:57:47 +02:00
parent 9600242e70
commit 8183b245c6
5 changed files with 51 additions and 8 deletions

View File

@@ -1554,4 +1554,15 @@ MainWindow::~MainWindow()
delete wsserver;
delete wormhole;
}
}
void MainWindow::on_givemeZaddr_clicked()
{
bool sapling = true;
rpc->createNewZaddr(sapling, [=] (json reply) {
QString hushchataddr = QString::fromStdString(reply.get<json::array_t>()[0]);
QMessageBox::information(this, "Your new Hushchataddress",hushchataddr);
// ui->listReceiveAddresses->insertItem(0, hushchataddr);
// ui->listReceiveAddresses->setCurrentIndex(0);
});
}