Add ChannelList to AppState

This commit is contained in:
Max Brunsfeld
2021-08-23 15:03:45 -07:00
parent 43bb38206f
commit 5ecedd894d
12 changed files with 134 additions and 93 deletions
+3 -1
View File
@@ -19,7 +19,8 @@ mod util;
pub mod workspace;
pub mod worktree;
use gpui::action;
use channel::ChannelList;
use gpui::{action, ModelHandle};
pub use settings::Settings;
use parking_lot::Mutex;
@@ -36,6 +37,7 @@ pub struct AppState {
pub themes: Arc<settings::ThemeRegistry>,
pub rpc: Arc<rpc::Client>,
pub fs: Arc<dyn fs::Fs>,
pub channel_list: ModelHandle<ChannelList>,
}
pub fn init(cx: &mut gpui::MutableAppContext) {