Skip to content

Commit

Permalink
[i18n-ignore] fix Rust code for "Migrate to Global Shortcut Plugin" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Czxck001 authored Oct 20, 2024
1 parent 328b4c7 commit e75ff29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/content/docs/es/start/migrate/from-tauri-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ use tauri_plugin_global_shortcut::GlobalShortcutExt;

tauri::Builder::default()
.plugin(
tauri_plugin_global_shortcut::Builder::with_handler(|app, shortcut| {
tauri_plugin_global_shortcut::Builder::new().with_handler(|app, shortcut| {
println!("Shortcut triggered: {:?}", shortcut);
})
.build(),
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/start/migrate/from-tauri-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ use tauri_plugin_global_shortcut::GlobalShortcutExt;

tauri::Builder::default()
.plugin(
tauri_plugin_global_shortcut::Builder::with_handler(|app, shortcut| {
tauri_plugin_global_shortcut::Builder::new().with_handler(|app, shortcut| {
println!("Shortcut triggered: {:?}", shortcut);
})
.build(),
Expand Down
2 changes: 1 addition & 1 deletion src/content/docs/zh-cn/start/migrate/from-tauri-1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ use tauri_plugin_global_shortcut::GlobalShortcutExt;

tauri::Builder::default()
.plugin(
tauri_plugin_global_shortcut::Builder::with_handler(|app, shortcut| {
tauri_plugin_global_shortcut::Builder::new().with_handler(|app, shortcut| {
println!("Shortcut triggered: {:?}", shortcut);
})
.build(),
Expand Down

0 comments on commit e75ff29

Please sign in to comment.