1
0
Fork 0
forked from lthn/blockchain

deeplinks ready on application level

This commit is contained in:
cryptozoidberg 2021-12-30 19:17:22 +01:00
parent 10e0137d0e
commit 9ea35d3a2f
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC
3 changed files with 14 additions and 2 deletions

View file

@ -836,6 +836,13 @@ bool MainWindow::handle_deeplink_params_in_commandline()
bool MainWindow::init_backend(int argc, char* argv[])
{
if (argc > 1)
{
std::string msg = "Command_line 1: ";
msg += argv[1];
message_box(msg.c_str());
}
TRY_ENTRY();
std::string command_line_fail_details;
if (!m_backend.init_command_line(argc, argv, command_line_fail_details))
@ -872,7 +879,7 @@ bool MainWindow::init_backend(int argc, char* argv[])
if (!init_ipc_server())
{
this->show_msg_box("Failed to initialize IP server, check debug logs for more details.");
this->show_msg_box("Failed to initialize IPC server, check debug logs for more details.");
return false;
}

View file

@ -224,7 +224,7 @@ private:
void contextMenuEvent(QContextMenuEvent * event);
void changeEvent(QEvent *e);
void on_maximized();
bool handle_deeplink_params_in_commandline();
//void setOrientation(Qt::ScreenOrientation orientation);

View file

@ -990,6 +990,11 @@ bool wallets_manager::get_opened_wallets(std::list<view::open_wallet_response>&
return true;
}
const po::variables_map& wallets_manager::get_arguments()
{
return m_vm;
}
std::string wallets_manager::get_recent_transfers(size_t wallet_id, uint64_t offset, uint64_t count, view::transfers_array& tr_hist, bool exclude_mining_txs)
{
GET_WALLET_BY_ID(wallet_id, w);