File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl Revlog {
77
77
78
78
///
79
79
pub fn update ( & mut self ) -> Result < ( ) > {
80
- if self . visible {
80
+ if self . is_visible ( ) {
81
81
let log_changed =
82
82
self . git_log . fetch ( ) ? == FetchStatus :: Started ;
83
83
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ impl Stashing {
72
72
73
73
///
74
74
pub fn update ( & mut self ) -> Result < ( ) > {
75
- if self . visible {
75
+ if self . is_visible ( ) {
76
76
self . git_status . fetch ( & StatusParams :: new (
77
77
StatusType :: Both ,
78
78
self . options . stash_untracked ,
@@ -92,7 +92,7 @@ impl Stashing {
92
92
& mut self ,
93
93
ev : AsyncNotification ,
94
94
) -> Result < ( ) > {
95
- if self . visible {
95
+ if self . is_visible ( ) {
96
96
if let AsyncNotification :: Status = ev {
97
97
let status = self . git_status . last ( ) ?;
98
98
self . index . update ( & status. items ) ?;
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ impl StashList {
43
43
44
44
///
45
45
pub fn update ( & mut self ) -> Result < ( ) > {
46
- if self . visible {
46
+ if self . is_visible ( ) {
47
47
let stashes = sync:: get_stashes ( CWD ) ?;
48
48
let commits =
49
49
sync:: get_commits_info ( CWD , stashes. as_slice ( ) , 100 ) ?;
@@ -187,7 +187,7 @@ impl Component for StashList {
187
187
& mut self ,
188
188
ev : crossterm:: event:: Event ,
189
189
) -> Result < EventState > {
190
- if self . visible {
190
+ if self . is_visible ( ) {
191
191
if self . list . event ( ev) ?. is_consumed ( ) {
192
192
return Ok ( EventState :: Consumed ) ;
193
193
}
You can’t perform that action at this time.
0 commit comments