working profiler tree

This commit is contained in:
filipriec
2025-03-21 22:20:43 +01:00
parent d55dff8a3e
commit 911dba9bce
5 changed files with 70 additions and 10 deletions

View File

@@ -1,11 +1,11 @@
// src/client/ui/handlers/state.rs
use std::env;
use common::proto::multieko2::table_definition::ProfileTreeResponse;
#[derive(Default)]
pub struct UiState {
pub show_sidebar: bool,
// Add other UI-related states here
pub profile_tree: ProfileTreeResponse,
}
pub struct AppState {
@@ -42,3 +42,12 @@ impl AppState {
self.current_position = current_position;
}
}
impl Default for UiState {
fn default() -> Self {
Self {
show_sidebar: true,
profile_tree: ProfileTreeResponse::default(),
}
}
}