feat: add API connection state management and update status display

This commit is contained in:
asepharyana
2026-07-12 02:26:53 +07:00
parent a98fdb0c7b
commit d52ee967ee
4 changed files with 22 additions and 21 deletions
+2
View File
@@ -240,6 +240,7 @@ pub struct MiscState {
pub effort_level: usize,
pub selected_index: usize,
pub editor: Option<super::super::mode::editor::EditorState>,
pub api_connected: bool,
}
impl MiscState {
@@ -255,6 +256,7 @@ impl MiscState {
effort_level: 1,
selected_index: 0,
editor: None,
api_connected: false,
}
}