|
8 | 8 | //! - Settings action handling with immediate theme application |
9 | 9 |
|
10 | 10 | use agentic::{ |
11 | | - events::{AppEvent, AppState, EventHandler}, |
12 | | - settings::{Settings, SettingsAction, SettingsManager}, |
| 11 | + events::{AppEvent, AppState}, |
| 12 | + settings::SettingsAction, |
13 | 13 | theme::{Theme, ThemeVariant}, |
14 | 14 | ui::app::App, |
15 | 15 | }; |
16 | | -use std::time::Duration; |
17 | 16 |
|
18 | 17 | fn main() -> Result<(), Box<dyn std::error::Error>> { |
19 | 18 | println!("🔄 Issue #19 Demo: App State Machine Extension for Settings"); |
@@ -46,14 +45,14 @@ fn main() -> Result<(), Box<dyn std::error::Error>> { |
46 | 45 | println!("3. Testing event handling..."); |
47 | 46 |
|
48 | 47 | // Simulate OpenSettings event |
49 | | - let open_event = AppEvent::OpenSettings; |
| 48 | + let _open_event = AppEvent::OpenSettings; |
50 | 49 | println!(" Handling OpenSettings event..."); |
51 | 50 | // Note: handle_event is private, but we can test the public methods |
52 | 51 | app.enter_settings(); |
53 | 52 | println!(" State after OpenSettings: {:?}", app.state()); |
54 | 53 |
|
55 | 54 | // Simulate CloseSettings event |
56 | | - let close_event = AppEvent::CloseSettings; |
| 55 | + let _close_event = AppEvent::CloseSettings; |
57 | 56 | println!(" Handling CloseSettings event..."); |
58 | 57 | app.exit_settings(); |
59 | 58 | println!(" State after CloseSettings: {:?}", app.state()); |
|
0 commit comments