Skip to content

Commit

Permalink
Adding a few more menu options
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyv1987 committed Nov 12, 2021
1 parent 2f69958 commit e5051f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 1 addition & 7 deletions nym-wallet/src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

use mixnet_contract::{Gateway, MixNode};
use std::sync::Arc;
use tauri::{Menu, MenuItem};
use tauri::{Menu};
use tokio::sync::RwLock;
use validator_client::nymd::fee_helpers::Operation;

Expand Down Expand Up @@ -37,12 +37,6 @@ 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())))
Expand Down
2 changes: 2 additions & 0 deletions nym-wallet/src-tauri/src/menu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ impl AddDefaultSubmenus for Menu {
"Menu",
Menu::new()
.add_native_item(MenuItem::Copy)
.add_native_item(MenuItem::Cut)
.add_native_item(MenuItem::Paste)
.add_native_item(MenuItem::Hide)
.add_native_item(MenuItem::HideOthers)
.add_native_item(MenuItem::SelectAll)
.add_native_item(MenuItem::ShowAll)
.add_native_item(MenuItem::Quit),
));
Expand Down

0 comments on commit e5051f9

Please sign in to comment.