Combine Workspace and WorkspaceView

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo
2021-05-03 20:15:55 -06:00
co-authored by Max Brunsfeld
parent b801628230
commit ed28bd3f95
7 changed files with 369 additions and 318 deletions
+1 -1
View File
@@ -426,7 +426,7 @@ impl FileHandle {
) {
let mut prev_state = self.state.lock().clone();
let cur_state = Arc::downgrade(&self.state);
ctx.observe(&self.worktree, move |observer, worktree, ctx| {
ctx.observe_model(&self.worktree, move |observer, worktree, ctx| {
if let Some(cur_state) = cur_state.upgrade() {
let cur_state_unlocked = cur_state.lock();
if *cur_state_unlocked != prev_state {