mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
fix: dont allow open revert dlg on [D] press while on staged file
This commit is contained in:
parent
387b8748b1
commit
936e965c17
1 changed files with 3 additions and 1 deletions
|
|
@ -222,7 +222,9 @@ impl Component for ChangesComponent {
|
|||
}
|
||||
}
|
||||
keys::STATUS_RESET_FILE => {
|
||||
if self.dispatch_reset_workdir() {
|
||||
if self.is_working_dir
|
||||
&& self.dispatch_reset_workdir()
|
||||
{
|
||||
Some(EventUpdate::None)
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Loading…
Reference in a new issue