Commit 69203b09bc

69203b09bc049475157c228663635a1e215cc8c4

parent: 6b4b36553a

Unsigned

Damir Jelić <poljar@termina.org.uk> · 2021-01-03 15:39 UTC

config: Add the busy_sign config option.

Layout: unified · split

src/bar_items/status.rs +3 −1
@@ -31,7 +31,9 @@ impl BarItemCallback for Status {
31 } 31 }
32 32
33 if room.is_busy() { 33 if room.is_busy() {
34 signs.push("⏳".to_owned()); 34 signs.push(
35 server.config().borrow().look().busy_sign(),
36 );
35 } 37 }
36 } 38 }
37 39
src/config.rs +8
@@ -92,6 +92,14 @@ config!(
92 "🔒", 92 "🔒",
93 }, 93 },
94 94
95 busy_sign: String {
96 // Description.
97 "A sign that is used to show that the client is busy, \
98 e.g. when room history is being fetched",
99 // Default value.
100 "⏳",
101 },
102
95 local_echo: bool { 103 local_echo: bool {
96 // Description 104 // Description
97 "Should the sending message be printed out before the server \ 105 "Should the sending message be printed out before the server \