Fix missing window title during installation step

This commit is contained in:
meehl committed 2025-10-31 16:39:09 +01:00
1 parent 54b454f8b9
commit 87ff0968d8
2 files changed
+11 -1

No files matched your search

+5 -1
View File
@@ -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
<!-- next-url -->
[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
+6
View File
@@ -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<GraphicsContext> 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)) {