HUGE CHANGES TO MODESA

This commit is contained in:
filipriec
2025-03-23 15:11:43 +01:00
parent d1d33b5752
commit 4481560025
4 changed files with 93 additions and 72 deletions

View File

@@ -10,6 +10,11 @@ pub struct UiState {
pub show_admin: bool,
}
pub struct GeneralState {
pub selected_item: usize,
pub current_option: usize,
}
pub struct AppState {
// Core editor state
pub current_dir: String,
@@ -17,11 +22,10 @@ pub struct AppState {
pub current_position: u64,
pub profile_tree: ProfileTreeResponse,
pub selected_profile: Option<String>,
pub admin_selected_item: usize, // Tracks selection in admin panel
pub admin_profiles: Vec<String>, // Stores admin panel data
// UI preferences
pub ui: UiState,
pub general: GeneralState,
}
impl AppState {
@@ -35,8 +39,6 @@ impl AppState {
current_position: 0,
profile_tree: ProfileTreeResponse::default(),
selected_profile: None,
admin_selected_item: 0,
admin_profiles: Vec::new(),
ui: UiState::default(),
})
}