summaryrefslogtreecommitdiffstats
path: root/src/tabs
diff options
context:
space:
mode:
authorextrawurst <mail@rusticorn.com>2023-08-21 12:19:07 +0200
committerextrawurst <mail@rusticorn.com>2023-08-21 12:19:07 +0200
commit0cf041bb980020517f0bbe135ca9e9a14dd5935e (patch)
treec56bf9ccf1bcd4744f80c07cdfa325743775d6c7 /src/tabs
parentcde1c7f8831021da9222e89120133e2753414162 (diff)
fix backgrounding search thread
Diffstat (limited to 'src/tabs')
-rw-r--r--src/tabs/revlog.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs
index e5e37e9d..d854dcea 100644
--- a/src/tabs/revlog.rs
+++ b/src/tabs/revlog.rs
@@ -48,6 +48,14 @@ enum LogSearch {
Results(LogSearchResult),
}
+impl LogSearch {
+ fn set_background(&mut self) {
+ if let LogSearch::Searching(log, _) = self {
+ log.set_background();
+ }
+ }
+}
+
///
pub struct Revlog {
repo: RepoPathRef,
@@ -706,10 +714,7 @@ impl Component for Revlog {
fn hide(&mut self) {
self.visible = false;
self.git_log.set_background();
- //TODO:
- // self.git_log_find
- // .as_mut()
- // .map(asyncgit::AsyncLog::set_background);
+ self.search.set_background();
}
fn show(&mut self) -> Result<()> {