mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
add activity_hide_visible setting
This commit is contained in:
parent
fa9463cb02
commit
3af2ce8731
@ -20,6 +20,7 @@
|
||||
|
||||
#include "module.h"
|
||||
#include "signals.h"
|
||||
#include "settings.h"
|
||||
|
||||
#include "gui-windows.h"
|
||||
|
||||
@ -32,6 +33,9 @@ static void sig_activity(WINDOW_REC *window)
|
||||
if (!is_window_visible(window) || window->data_level == 0)
|
||||
return;
|
||||
|
||||
if (!settings_get_bool("activity_hide_visible"))
|
||||
return;
|
||||
|
||||
window->data_level = 0;
|
||||
g_free_and_null(window->hilight_color);
|
||||
|
||||
@ -46,6 +50,7 @@ static void sig_activity(WINDOW_REC *window)
|
||||
|
||||
void mainwindow_activity_init(void)
|
||||
{
|
||||
settings_add_bool("lookandfeel", "activity_hide_visible", TRUE);
|
||||
signal_add_first("window hilight", (SIGNAL_FUNC) sig_activity);
|
||||
signal_add_first("window activity", (SIGNAL_FUNC) sig_activity);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user