mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 17:08:21 +00:00
refresh compare state at the right time (#564)
This commit is contained in:
parent
a427874137
commit
36c124f9e3
1 changed files with 5 additions and 2 deletions
|
|
@ -27,7 +27,7 @@ use tui::{
|
|||
widgets::Paragraph,
|
||||
};
|
||||
|
||||
///
|
||||
/// what part of the screen is focused
|
||||
#[derive(PartialEq)]
|
||||
enum Focus {
|
||||
WorkDir,
|
||||
|
|
@ -35,7 +35,7 @@ enum Focus {
|
|||
Stage,
|
||||
}
|
||||
|
||||
///
|
||||
/// which target are we showing a diff against
|
||||
#[derive(PartialEq, Copy, Clone)]
|
||||
enum DiffTarget {
|
||||
Stage,
|
||||
|
|
@ -317,6 +317,9 @@ impl Status {
|
|||
match ev {
|
||||
AsyncNotification::Diff => self.update_diff()?,
|
||||
AsyncNotification::Status => self.update_status()?,
|
||||
AsyncNotification::Push
|
||||
| AsyncNotification::Fetch
|
||||
| AsyncNotification::CommitFiles => self.branch_compare(),
|
||||
_ => (),
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue