fix(gui): Button to open data directory (#256)

This commit is contained in:
Mohan 2025-01-22 16:29:11 +01:00 committed by GitHub
parent 9e27c6548b
commit c9d3536f36
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 187 additions and 24 deletions

View file

@ -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> {

View file

@ -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);