mirror of
https://github.com/tauri-apps/tauri-plugin-single-instance.git
synced 2026-02-04 02:41:18 +01:00
refactor!: always close second instances
Always close second instances and remove the ability to to close them manually we can bring it later if it is needed
This commit is contained in:
@@ -5,12 +5,9 @@
|
||||
|
||||
fn main() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_single_instance::init(
|
||||
|argv, cwd, close_new_instance| {
|
||||
println!("{argv:?}, {cwd}");
|
||||
close_new_instance();
|
||||
},
|
||||
))
|
||||
.plugin(tauri_plugin_single_instance::init(|argv, cwd| {
|
||||
println!("{argv:?}, {cwd}");
|
||||
}))
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running tauri application");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user