From 3eec8da3670455fd527d11403368ea39dfc30ce4 Mon Sep 17 00:00:00 2001 From: "guillem.cordoba" Date: Fri, 20 Sep 2024 10:48:44 +0200 Subject: [PATCH] Added title to window --- .../templates/holochain-runtime/src-tauri/src/lib.rs.hbs | 1 + .../templates/end-user-happ/src-tauri/src/lib.rs.hbs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/scaffold-holochain-runtime/templates/holochain-runtime/src-tauri/src/lib.rs.hbs b/crates/scaffold-holochain-runtime/templates/holochain-runtime/src-tauri/src/lib.rs.hbs index 4bbd4466..fd4e31af 100644 --- a/crates/scaffold-holochain-runtime/templates/holochain-runtime/src-tauri/src/lib.rs.hbs +++ b/crates/scaffold-holochain-runtime/templates/holochain-runtime/src-tauri/src/lib.rs.hbs @@ -22,6 +22,7 @@ pub fn run() { let result: anyhow::Result<()> = tauri::async_runtime::block_on(async move { app.holochain()? .main_window_builder(String::from("main"), true, None, None).await? + .title(String::from("{{title_case runtime_name}}")) .build()?; Ok(()) diff --git a/crates/scaffold-tauri-happ/templates/end-user-happ/src-tauri/src/lib.rs.hbs b/crates/scaffold-tauri-happ/templates/end-user-happ/src-tauri/src/lib.rs.hbs index 082b9fb9..bffffe71 100644 --- a/crates/scaffold-tauri-happ/templates/end-user-happ/src-tauri/src/lib.rs.hbs +++ b/crates/scaffold-tauri-happ/templates/end-user-happ/src-tauri/src/lib.rs.hbs @@ -32,7 +32,9 @@ pub fn run() { // After set up we can be sure our app is installed and up to date, so we can just open it app.holochain()? - .main_window_builder(String::from("main"), false, Some(String::from("{{app_name}}")), None).await? + .main_window_builder(String::from("main"), false, Some(String::from("{{app_name}}")), None) + .await? + .title(String::from("{{title_case app_name}}")) .build()?; Ok(())