working profiler tree
This commit is contained in:
@@ -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(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user