Skip to content

Commit

Permalink
fix: update the window title on init
Browse files Browse the repository at this point in the history
  • Loading branch information
edfloreshz committed Nov 3, 2024
1 parent fafaba8 commit a52a24b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,12 +274,16 @@ impl Application for TweakTool {
offset: 0,
};

let commands = vec![app.update(Message::FetchAvailableColorSchemes(
let mut tasks = vec![app.update(Message::FetchAvailableColorSchemes(
ColorSchemeProvider::CosmicThemes,
app.limit,
))];

(app, Task::batch(commands))
if let Some(id) = app.core.main_window_id() {
tasks.push(app.set_window_title(fl!("app-title"), id));
}

(app, Task::batch(tasks))
}

fn view(&self) -> Element<Self::Message> {
Expand Down

0 comments on commit a52a24b

Please sign in to comment.