aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer/threads.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-04-29 11:35:31 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-04-29 11:35:31 +0200
commit7336a50caa97c1ff83e77796a3cdd383ea7ed3ba (patch)
treee31b68fd58de03c9ee27e36ba660d2d3941a9d22 /src/buffer/threads.rs
parent92019c2affce7c5acae39510fec54c5810da228b (diff)
downloadmail-7336a50caa97c1ff83e77796a3cdd383ea7ed3ba.tar.gz
Buffer::name()
Diffstat (limited to 'src/buffer/threads.rs')
-rw-r--r--src/buffer/threads.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer/threads.rs b/src/buffer/threads.rs
index ddef067..9439bb4 100644
--- a/src/buffer/threads.rs
+++ b/src/buffer/threads.rs
@@ -53,6 +53,10 @@ impl Threads {
res
}
+ pub fn name(&self) -> String {
+ format!("threads: '{}'", self.query)
+ }
+
pub fn reload(&mut self) {
self.threads = db::open(DatabaseMode::ReadOnly)
.unwrap()