better place for push cmd

This commit is contained in:
Stephan Dilly 2020-10-11 01:00:02 +02:00
parent 23ccee002b
commit aae3d2c611

View file

@ -378,6 +378,12 @@ impl Component for Status {
true,
true,
));
out.push(CommandInfo::new(
strings::commands::status_push(&self.key_config),
self.index_wd.branch_name().is_some(),
true,
));
}
{
@ -403,12 +409,6 @@ impl Component for Status {
));
}
out.push(CommandInfo::new(
strings::commands::status_push(&self.key_config),
self.index_wd.branch_name().is_some(),
self.visible || force_all,
));
out.push(
CommandInfo::new(
strings::commands::select_status(&self.key_config),