Skip to content

Commit 0cf041b

Browse files
committed
fix backgrounding search thread
1 parent cde1c7f commit 0cf041b

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/tabs/revlog.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ enum LogSearch {
4848
Results(LogSearchResult),
4949
}
5050

51+
impl LogSearch {
52+
fn set_background(&mut self) {
53+
if let LogSearch::Searching(log, _) = self {
54+
log.set_background();
55+
}
56+
}
57+
}
58+
5159
///
5260
pub struct Revlog {
5361
repo: RepoPathRef,
@@ -706,10 +714,7 @@ impl Component for Revlog {
706714
fn hide(&mut self) {
707715
self.visible = false;
708716
self.git_log.set_background();
709-
//TODO:
710-
// self.git_log_find
711-
// .as_mut()
712-
// .map(asyncgit::AsyncLog::set_background);
717+
self.search.set_background();
713718
}
714719

715720
fn show(&mut self) -> Result<()> {

0 commit comments

Comments
 (0)