refactor: merge workspace state into app root
Rust / build (macos-latest, stable) (push) Waiting to run
Rust / build (ubuntu-latest, stable) (push) Waiting to run
Rust / build (windows-latest, stable) (push) Waiting to run

This commit is contained in:
2026-11-23 03:26:11 +07:00
parent efb5761c56
commit bef96c614b
17 changed files with 374 additions and 385 deletions
+3 -3
View File
@@ -20,13 +20,13 @@ use ui::tooltip::Tooltip;
use super::RepoDetailView;
use super::commit_diff::CommitDiffView;
use crate::app::AppRoot;
use crate::shared::event_list::commit_list;
use crate::shared::panels;
use crate::workspace::Workspace;
pub struct RepoHistoryView {
store: Entity<RepoStore>,
workspace: WeakEntity<Workspace>,
workspace: WeakEntity<AppRoot>,
detail: WeakEntity<RepoDetailView>,
sync_directory: Entity<SyncStatusDirectory>,
worktree: Option<PathBuf>,
@@ -43,7 +43,7 @@ pub struct RepoHistoryView {
impl RepoHistoryView {
pub fn new(
store: Entity<RepoStore>,
workspace: WeakEntity<Workspace>,
workspace: WeakEntity<AppRoot>,
detail: WeakEntity<RepoDetailView>,
sync_directory: Entity<SyncStatusDirectory>,
) -> Self {