summaryrefslogtreecommitdiffstats
path: root/src/tabs/stashing.rs
diff options
context:
space:
mode:
authorStephan Dilly <dilly.stephan@gmail.com>2021-04-26 11:55:40 +0200
committerStephan Dilly <dilly.stephan@gmail.com>2021-04-26 11:55:40 +0200
commit838258c9338a9d4c0b5ecff8460aadc156f11ef8 (patch)
tree2da2901879b966977acade5878ab29956d6d109e /src/tabs/stashing.rs
parent3bc21767cbe1cee27b4da0796bc7f2fc32ff332a (diff)
some cleanup
Diffstat (limited to 'src/tabs/stashing.rs')
-rw-r--r--src/tabs/stashing.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tabs/stashing.rs b/src/tabs/stashing.rs
index 8ea261d3..d28879bb 100644
--- a/src/tabs/stashing.rs
+++ b/src/tabs/stashing.rs
@@ -72,7 +72,7 @@ impl Stashing {
///
pub fn update(&mut self) -> Result<()> {
- if self.visible {
+ if self.is_visible() {
self.git_status.fetch(&StatusParams::new(
StatusType::Both,
self.options.stash_untracked,
@@ -92,7 +92,7 @@ impl Stashing {
&mut self,
ev: AsyncNotification,
) -> Result<()> {
- if self.visible {
+ if self.is_visible() {
if let AsyncNotification::Status = ev {
let status = self.git_status.last()?;
self.index.update(&status.items)?;