We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
config
Context
1 parent d36b726 commit 144d6b9Copy full SHA for 144d6b9
.changes/config-mut-getter.md
@@ -0,0 +1,5 @@
1
+---
2
+"tauri": patch
3
4
+
5
+Adds a mutable `config` getter on the `Context` struct.
core/tauri/src/lib.rs
@@ -142,6 +142,12 @@ impl<A: Assets> Context<A> {
142
&self.config
143
}
144
145
+ /// A mutable reference to the config the application was prepared with.
146
+ #[inline(always)]
147
+ pub fn config_mut(&mut self) -> &mut Config {
148
+ &mut self.config
149
+ }
150
151
/// The assets to be served directly by Tauri.
152
#[inline(always)]
153
pub fn assets(&self) -> Arc<A> {
0 commit comments