app: refactor WindowContext name and creation

This commit is contained in:
Florian RICHER 2025-05-31 12:56:00 +02:00
parent a293b962f7
commit 45ccf030f6
Signed by: florian.richer
GPG key ID: C73D37CBED7BFC77
6 changed files with 42 additions and 52 deletions

View file

@ -1,6 +1,6 @@
use std::error::Error;
use crate::core::app::context::ApplicationContext;
use crate::core::app::context::WindowContext;
use super::Scene;
@ -51,7 +51,7 @@ impl SceneManager {
pub fn load_scene_if_not_loaded(
&mut self,
app_context: &mut ApplicationContext,
app_context: &mut WindowContext,
) -> Result<(), Box<dyn Error>> {
if let Some(scene) = self.current_scene_mut() {
if !scene.loaded() {