mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-10-20 23:11:24 +02:00
feat: update to tauri beta, add permissions (#862)
Co-authored-by: Lucas Nogueira <lucas@tauri.app> Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
This commit is contained in:
387 files changed
+21883
-943
No files matched your search
@@ -29,7 +29,7 @@ impl<R: Runtime> SingleInstanceDBus<R> {
|
||||
}
|
||||
|
||||
fn dbus_id(config: &Config) -> String {
|
||||
config.tauri.bundle.identifier.replace(['.', '-'], "_")
|
||||
config.identifier.replace(['.', '-'], "_")
|
||||
}
|
||||
|
||||
pub fn init<R: Runtime>(f: Box<SingleInstanceCallback<R>>) -> TauriPlugin<R> {
|
||||
|
||||
@@ -33,7 +33,7 @@ const WMCOPYDATA_SINGLE_INSTANCE_DATA: usize = 1542;
|
||||
pub fn init<R: Runtime>(f: Box<SingleInstanceCallback<R>>) -> TauriPlugin<R> {
|
||||
plugin::Builder::new("single-instance")
|
||||
.setup(|app, _api| {
|
||||
let id = &app.config().tauri.bundle.identifier;
|
||||
let id = &app.config().identifier;
|
||||
|
||||
let class_name = encode_wide(format!("{id}-sic"));
|
||||
let window_name = encode_wide(format!("{id}-siw"));
|
||||
|
||||
Reference in new issue
Block a user