HUGE CHANGES TO MODESA
This commit is contained in:
@@ -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(),
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user