We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f884bae commit ba6f370Copy full SHA for ba6f370
.changes/fix-add-capability-panic.md
@@ -0,0 +1,5 @@
1
+---
2
+tauri: 'patch:bug'
3
4
+
5
+Fix panic when a plugin command is run with a capability added at runtime (via `Manager::add_capability`).
crates/tauri/src/ipc/authority.rs
@@ -322,7 +322,10 @@ impl RuntimeAuthority {
322
.extend(command_scope.allow.clone());
323
command_scope_entry.deny.extend(command_scope.deny.clone());
324
325
- self.scope_manager.command_cache.remove(&scope_id);
+ self
326
+ .scope_manager
327
+ .command_cache
328
+ .insert(scope_id, StateManager::new());
329
}
330
331
0 commit comments