diff --git a/tauri-wallet/src-tauri/src/main.rs b/tauri-wallet/src-tauri/src/main.rs index 28aecff021..79463f63a4 100644 --- a/tauri-wallet/src-tauri/src/main.rs +++ b/tauri-wallet/src-tauri/src/main.rs @@ -5,6 +5,7 @@ use mixnet_contract::{Gateway, MixNode}; use std::sync::Arc; +use tauri::{Menu, MenuItem}; use tokio::sync::RwLock; use ts_rs::export; use validator_client::nymd::fee_helpers::Operation; @@ -35,6 +36,12 @@ macro_rules! format_err { }; } +pub fn create_menu_items() -> Menu { + Menu::new() + .add_native_item(MenuItem::Copy) + .add_native_item(MenuItem::Paste) +} + fn main() { tauri::Builder::default() .manage(Arc::new(RwLock::new(State::default()))) @@ -61,6 +68,7 @@ fn main() { get_reverse_mix_delegations_paged, get_reverse_gateway_delegations_paged, ]) + .menu(create_menu_items()) .run(tauri::generate_context!()) .expect("error while running tauri application"); }