Fix missing window title during installation step
This commit is contained in:
1 parent
54b454f8b9
commit
87ff0968d8
2 files changed
+11
-1
No files matched your search
@@ -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)) {
|
||||
|
||||
Reference in new issue
Block a user