🎨 Merge app_settings.rs and base.rs files
This commit is contained in:
18
src/base.rs
18
src/base.rs
@@ -1,13 +1,25 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::matrix_client::Requester;
|
||||
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub struct Store {
|
||||
pub is_logged: bool,
|
||||
}
|
||||
|
||||
// pub type ProgramStore = Store<Info>;
|
||||
// pub type AsyncProgramStore = Arc<AsyncMutex<ProgramStore>>;
|
||||
|
||||
impl Store {
|
||||
pub fn new() -> Self {
|
||||
Self { is_logged: false }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
pub struct AppSettings {
|
||||
pub requester: Option<Arc<Requester>>,
|
||||
}
|
||||
|
||||
impl AppSettings {
|
||||
pub fn new() -> Self {
|
||||
Self { requester: None }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user