| use std::sync::atomic::AtomicUsize; | |
| use std::sync::Mutex; | |
| use crate::browser::TabManager; | |
| pub struct AppState { | |
| pub next_tab_id: AtomicUsize, | |
| pub tabs: Mutex<TabManager>, | |
| } | |
| impl Default for AppState { | |
| fn default() -> Self { | |
| Self { | |
| next_tab_id: AtomicUsize::new(1), | |
| tabs: Mutex::new(TabManager::default()), | |
| } | |
| } | |
| } | |