Skip to content

Commit

Permalink
Set window title
Browse files Browse the repository at this point in the history
  • Loading branch information
PurityLake committed Dec 2, 2023
1 parent 64d90b4 commit 08b5194
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ repos:
rev: master
hooks:
- id: fmt
args: ['-all', '--', '--check']
args: ['--all', '--', '--check']
- id: cargo-check
- id: clippy
args: ['--', '-D', 'warnings']
8 changes: 7 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ use bevy::prelude::*;

fn main() {
App::new()
.add_plugins(DefaultPlugins)
.add_plugins(DefaultPlugins.set(WindowPlugin {
primary_window: Some(Window {
title: "Hold The Line".into(),
..default()
}),
..default()
}))
.add_systems(Startup, setup)
.run();
}
Expand Down

0 comments on commit 08b5194

Please sign in to comment.