Skip to content

Commit e75ff29

Browse files
authored
[i18n-ignore] fix Rust code for "Migrate to Global Shortcut Plugin" (#2884)
1 parent 328b4c7 commit e75ff29

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/content/docs/es/start/migrate/from-tauri-1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ use tauri_plugin_global_shortcut::GlobalShortcutExt;
488488

489489
tauri::Builder::default()
490490
.plugin(
491-
tauri_plugin_global_shortcut::Builder::with_handler(|app, shortcut| {
491+
tauri_plugin_global_shortcut::Builder::new().with_handler(|app, shortcut| {
492492
println!("Shortcut triggered: {:?}", shortcut);
493493
})
494494
.build(),

src/content/docs/start/migrate/from-tauri-1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ use tauri_plugin_global_shortcut::GlobalShortcutExt;
494494

495495
tauri::Builder::default()
496496
.plugin(
497-
tauri_plugin_global_shortcut::Builder::with_handler(|app, shortcut| {
497+
tauri_plugin_global_shortcut::Builder::new().with_handler(|app, shortcut| {
498498
println!("Shortcut triggered: {:?}", shortcut);
499499
})
500500
.build(),

src/content/docs/zh-cn/start/migrate/from-tauri-1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,7 +489,7 @@ use tauri_plugin_global_shortcut::GlobalShortcutExt;
489489

490490
tauri::Builder::default()
491491
.plugin(
492-
tauri_plugin_global_shortcut::Builder::with_handler(|app, shortcut| {
492+
tauri_plugin_global_shortcut::Builder::new().with_handler(|app, shortcut| {
493493
println!("Shortcut triggered: {:?}", shortcut);
494494
})
495495
.build(),

0 commit comments

Comments
 (0)