This commit is contained in:
Stephan Dilly 2021-03-01 09:49:17 +01:00
parent 67f3a13716
commit a8690e6e24
3 changed files with 11 additions and 11 deletions

View File

@ -5,10 +5,10 @@ use crate::{
event_pump, BranchListComponent, CommandBlocking,
CommandInfo, CommitComponent, Component,
CreateBranchComponent, DrawableComponent,
ExternalEditorComponent, FetchComponent, HelpComponent,
InspectCommitComponent, MsgComponent, PushComponent,
RenameBranchComponent, ResetComponent, StashMsgComponent,
TagCommitComponent,
ExternalEditorComponent, HelpComponent,
InspectCommitComponent, MsgComponent, PullComponent,
PushComponent, RenameBranchComponent, ResetComponent,
StashMsgComponent, TagCommitComponent,
},
input::{Input, InputEvent, InputState},
keys::{KeyConfig, SharedKeyConfig},
@ -45,7 +45,7 @@ pub struct App {
inspect_commit_popup: InspectCommitComponent,
external_editor_popup: ExternalEditorComponent,
push_popup: PushComponent,
fetch_popup: FetchComponent,
fetch_popup: PullComponent,
tag_commit_popup: TagCommitComponent,
create_branch_popup: CreateBranchComponent,
rename_branch_popup: RenameBranchComponent,
@ -111,7 +111,7 @@ impl App {
theme.clone(),
key_config.clone(),
),
fetch_popup: FetchComponent::new(
fetch_popup: PullComponent::new(
&queue,
sender,
theme.clone(),

View File

@ -33,7 +33,7 @@ use tui::{
use super::PushComponent;
///
pub struct FetchComponent {
pub struct PullComponent {
visible: bool,
git_fetch: AsyncFetch,
progress: Option<RemoteProgress>,
@ -45,7 +45,7 @@ pub struct FetchComponent {
input_cred: CredComponent,
}
impl FetchComponent {
impl PullComponent {
///
pub fn new(
queue: &Queue,
@ -156,7 +156,7 @@ impl FetchComponent {
}
}
impl DrawableComponent for FetchComponent {
impl DrawableComponent for PullComponent {
fn draw<B: Backend>(
&self,
f: &mut Frame<B>,
@ -193,7 +193,7 @@ impl DrawableComponent for FetchComponent {
}
}
impl Component for FetchComponent {
impl Component for PullComponent {
fn commands(
&self,
out: &mut Vec<CommandInfo>,

View File

@ -30,7 +30,7 @@ pub use commitlist::CommitList;
pub use create_branch::CreateBranchComponent;
pub use diff::DiffComponent;
pub use externaleditor::ExternalEditorComponent;
pub use fetch::FetchComponent;
pub use fetch::PullComponent;
pub use filetree::FileTreeComponent;
pub use help::HelpComponent;
pub use inspect_commit::InspectCommitComponent;