mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-11-23 03:26:36 +03:00
Emit virtual branches after fetch
This is because, in case a branch was integrated, the state is updated
This commit is contained in:
parent
1dfd2ee146
commit
e7fd44f259
@ -492,8 +492,9 @@ pub mod commands {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[tauri::command(async)]
|
#[tauri::command(async)]
|
||||||
#[instrument(skip(projects), err(Debug))]
|
#[instrument(skip(projects, windows), err(Debug))]
|
||||||
pub fn fetch_from_remotes(
|
pub fn fetch_from_remotes(
|
||||||
|
windows: State<'_, WindowState>,
|
||||||
projects: State<'_, projects::Controller>,
|
projects: State<'_, projects::Controller>,
|
||||||
project_id: ProjectId,
|
project_id: ProjectId,
|
||||||
action: Option<String>,
|
action: Option<String>,
|
||||||
@ -520,6 +521,7 @@ pub mod commands {
|
|||||||
return Err(anyhow!(error).into());
|
return Err(anyhow!(error).into());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
emit_vbranches(&windows, project_id);
|
||||||
let base_branch = gitbutler_branch_actions::get_base_branch_data(&project)?;
|
let base_branch = gitbutler_branch_actions::get_base_branch_data(&project)?;
|
||||||
Ok(base_branch)
|
Ok(base_branch)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user