1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Attention flag message ( enabled, disabled)

When the user enables or disabled the attention flag, a message will be
displayed in the chat window.
This commit is contained in:
DebXWoody 2021-05-29 20:44:17 +02:00
parent 1526a00123
commit b0a89db1d6
No known key found for this signature in database
GPG Key ID: CBD1B596579B7FFF

View File

@ -814,7 +814,12 @@ static int
_inp_rl_win_attention_handler(int count, int key) { _inp_rl_win_attention_handler(int count, int key) {
ProfWin* current = wins_get_current(); ProfWin* current = wins_get_current();
if ( current ) { if ( current ) {
win_toggle_attention(current); gboolean attention = win_toggle_attention(current);
if (attention) {
win_println(current, THEME_DEFAULT, "!", "Attention flag has been activated");
} else {
win_println(current, THEME_DEFAULT, "!", "Attention flag has been deactivated");
}
win_redraw(current); win_redraw(current);
} }
return 0; return 0;