12 lines
312 B
Rust
12 lines
312 B
Rust
// state.rs
|
|
use crate::config::Config;
|
|
use std::path::PathBuf;
|
|
use std::sync::Mutex;
|
|
|
|
pub struct AppState {
|
|
pub config: Mutex<Config>,
|
|
pub opened_files: Mutex<Vec<PathBuf>>,
|
|
/// Theme folder requested by the main window when it opens the editor.
|
|
pub editor_theme_folder: Mutex<Option<String>>,
|
|
}
|