xC/xP: support hiding unimportant messages at all
This commit is contained in:
5
xC.c
5
xC.c
@@ -3068,6 +3068,7 @@ relay_prepare_buffer_update (struct app_context *ctx, struct buffer *buffer)
|
||||
struct relay_event_data_buffer_update *e = &m->data.buffer_update;
|
||||
e->event = RELAY_EVENT_BUFFER_UPDATE;
|
||||
e->buffer_name = str_from_cstr (buffer->name);
|
||||
e->hide_unimportant = buffer->hide_unimportant;
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -14202,6 +14203,10 @@ on_toggle_unimportant (int count, int key, void *user_data)
|
||||
(void) key;
|
||||
struct app_context *ctx = user_data;
|
||||
ctx->current_buffer->hide_unimportant ^= true;
|
||||
|
||||
relay_prepare_buffer_update (ctx, ctx->current_buffer);
|
||||
relay_broadcast (ctx);
|
||||
|
||||
buffer_print_backlog (ctx, ctx->current_buffer);
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user