mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-12-01 21:14:43 -05:00
fix(gui): Button to open data directory (#256)
This commit is contained in:
parent
9e27c6548b
commit
c9d3536f36
11 changed files with 187 additions and 24 deletions
|
|
@ -577,7 +577,7 @@ async fn init_monero_wallet(
|
|||
Ok((monero_wallet, monero_wallet_rpc_process))
|
||||
}
|
||||
|
||||
mod data {
|
||||
pub mod data {
|
||||
use super::*;
|
||||
|
||||
pub fn data_dir_from(arg_dir: Option<PathBuf>, testnet: bool) -> Result<PathBuf> {
|
||||
|
|
|
|||
|
|
@ -1308,6 +1308,12 @@ pub struct CheckMoneroNodeResponse {
|
|||
pub available: bool,
|
||||
}
|
||||
|
||||
#[typeshare]
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub struct GetDataDirArgs {
|
||||
pub is_testnet: bool,
|
||||
}
|
||||
|
||||
#[derive(Error, Debug)]
|
||||
#[error("this is not one of the known monero networks")]
|
||||
struct UnknownMoneroNetwork(String);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue