Checkpoint

This commit is contained in:
Nathan Sobo
2023-10-31 11:16:08 -06:00
parent 0a2fde8707
commit 90601fe4fd
7 changed files with 195 additions and 36 deletions
+1 -1
View File
@@ -323,7 +323,7 @@ impl Pane {
// menu.set_position_mode(OverlayPositionMode::Local)
// });
let handle = cx.view();
let handle = cx.view().downgrade();
Self {
items: Vec::new(),
activation_history: Vec::new(),
+6 -2
View File
@@ -416,8 +416,12 @@ pub struct AppState {
pub fs: Arc<dyn fs2::Fs>,
pub build_window_options:
fn(Option<WindowBounds>, Option<Uuid>, MainThread<AppContext>) -> WindowOptions,
pub initialize_workspace:
fn(WeakModel<Workspace>, bool, Arc<AppState>, AsyncAppContext) -> Task<anyhow::Result<()>>,
pub initialize_workspace: fn(
WeakView<Workspace>,
bool,
Arc<AppState>,
AsyncWindowContext,
) -> Task<anyhow::Result<()>>,
pub node_runtime: Arc<dyn NodeRuntime>,
}