mirror of
https://github.com/DioxusLabs/dioxus
synced 2025-03-03 06:47:31 +00:00
use the name in the dioxus.toml in desktop if no name was set in the desktop config
This commit is contained in:
parent
1ed66a54cc
commit
15984b78db
2 changed files with 7 additions and 1 deletions
packages/desktop
|
@ -14,6 +14,7 @@ dioxus-core = { workspace = true, features = ["serialize"] }
|
|||
dioxus-html = { workspace = true, features = ["serialize", "native-bind"] }
|
||||
dioxus-interpreter-js = { workspace = true }
|
||||
dioxus-hot-reload = { workspace = true, optional = true }
|
||||
dioxus-cli-config = { workspace = true }
|
||||
|
||||
serde = "1.0.136"
|
||||
serde_json = "1.0.79"
|
||||
|
|
|
@ -49,7 +49,12 @@ impl Config {
|
|||
/// Initializes a new `WindowBuilder` with default values.
|
||||
#[inline]
|
||||
pub fn new() -> Self {
|
||||
let window = WindowBuilder::new().with_title("Dioxus app");
|
||||
let window = WindowBuilder::new().with_title(
|
||||
dioxus_cli_config::CURRENT_CONFIG
|
||||
.as_ref()
|
||||
.map(|c| c.dioxus_config.application.name.clone())
|
||||
.unwrap_or("Dioxus App".to_string()),
|
||||
);
|
||||
|
||||
Self {
|
||||
// event_handler: None,
|
||||
|
|
Loading…
Add table
Reference in a new issue