From 87ff0968d8a66ce948da29ee625a1a3ae8526dbd Mon Sep 17 00:00:00 2001 From: meehl <12648828+meehl@users.noreply.github.com> Date: Fri, 31 Oct 2025 16:39:09 +0100 Subject: [PATCH] Fix missing window title during installation step --- CHANGELOG.md | 6 +++++- src/app.rs | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d7514e9..846c68f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] - ReleaseDate +### Fixed + +- Fix missing window title during installation step + ## [0.2.6] - 2025-10-31 ### Added @@ -100,8 +104,8 @@ - First release -[Unreleased]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.6...HEAD +[Unreleased]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.6...HEAD [0.2.6]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.5...v0.2.6 [0.2.5]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.4...v0.2.5 [0.2.4]: https://github.com/meehl/rusty-path-of-building/compare/v0.2.3...v0.2.4 diff --git a/src/app.rs b/src/app.rs index 181a325..7708b7a 100644 --- a/src/app.rs +++ b/src/app.rs @@ -1,4 +1,5 @@ use crate::{ + args::Game, dpi::{ConvertToLogical, PhysicalPoint, PhysicalSize}, fonts::{FontData, FontDefinitions, Fonts}, gfx::{GraphicsContext, RenderJob}, @@ -132,6 +133,11 @@ impl ApplicationHandler for App { } }; + match Game::current() { + Game::Poe1 => window.set_title("Rusty Path of Building 1"), + Game::Poe2 => window.set_title("Rusty Path of Building 2"), + } + self.state.window.set_window(Arc::clone(&window)); self.gfx_context = match pollster::block_on(GraphicsContext::new(window)) {