mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
docs: improve Builder::run docs (#13058)
Otherwise people might use it and not realize that `App::run` also takes the callback argument, which could be useful for some.
This commit is contained in:
@@ -2227,7 +2227,10 @@ tauri::Builder::default()
|
||||
Ok(app)
|
||||
}
|
||||
|
||||
/// Runs the configured Tauri application.
|
||||
/// Builds the configured application and runs it.
|
||||
///
|
||||
/// This is a shorthand for [`Self::build`] followed by [`App::run`].
|
||||
/// For more flexibility, consider using those functions manually.
|
||||
pub fn run(self, context: Context<R>) -> crate::Result<()> {
|
||||
self.build(context)?.run(|_, _| {});
|
||||
Ok(())
|
||||
|
||||
Reference in New Issue
Block a user