Skip to content

Commit 094637b

Browse files
author
tlr
committed
add cut copy paste to macos
1 parent e023eb3 commit 094637b

4 files changed

Lines changed: 11 additions & 4 deletions

File tree

src-tauri/Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "Mididash"
3-
version = "0.4.2"
3+
version = "0.4.3"
44
description = "MIDI router with Lua scripting and a node based interface"
55
authors = ["tilr"]
66
edition = "2021"

src-tauri/src/lib.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use tauri::{tray::{TrayIconBuilder, TrayIconEvent}, Builder, Manager};
88
#[cfg(target_os = "linux")]
99
use tauri::menu::{MenuBuilder, MenuItemBuilder};
1010
#[cfg(target_os = "macos")]
11-
use tauri::menu::{ MenuBuilder, MenuItemBuilder, Menu, SubmenuBuilder };
11+
use tauri::menu::{ MenuBuilder, MenuItemBuilder, Menu, SubmenuBuilder, PredefinedMenuItem };
1212
use tauri_plugin_store::StoreExt;
1313

1414
pub mod globals;
@@ -184,6 +184,13 @@ fn build_menu(app: &mut tauri::App) -> Result<Menu<tauri::Wry>, Box<dyn Error>>
184184
.item(&MenuItemBuilder::with_id("save", "Save").build(app)?)
185185
.item(&MenuItemBuilder::with_id("save_as", "Save As").build(app)?)
186186
.separator()
187+
.undo()
188+
.redo()
189+
.separator()
190+
.cut()
191+
.copy()
192+
.paste()
193+
.separator()
187194
.item(&MenuItemBuilder::with_id("about", "About").build(app)?)
188195
.item(&MenuItemBuilder::with_id("quit", "Quit").build(app)?)
189196
.build()?;

src-tauri/tauri.conf.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://schema.tauri.app/config/2",
33
"productName": "Mididash",
4-
"version": "0.4.2",
4+
"version": "0.4.3",
55
"identifier": "com.mididash.app",
66
"build": {
77
"beforeDevCommand": "npm run dev",

0 commit comments

Comments
 (0)