1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-27 05:20:20 -04:00

/SET close_window_on_part - should we close the window too when

/PARTing channel


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@324 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-06-11 20:21:12 +00:00 committed by cras
parent 153e95f728
commit 10c92487a3

View File

@ -76,6 +76,9 @@ void window_remove_item(WINDOW_REC *window, WI_ITEM_REC *item)
}
signal_emit("window item remove", 2, window, item);
if (settings_get_bool("window_close_on_part") && windows->next != NULL)
window_destroy(window);
}
WINDOW_REC *window_item_window(WI_ITEM_REC *item)
@ -278,6 +281,8 @@ static void signal_window_item_changed(WINDOW_REC *window, WI_ITEM_REC *item)
void window_items_init(void)
{
settings_add_bool("lookandfeel", "window_close_on_part", TRUE);
signal_add_last("window item changed", (SIGNAL_FUNC) signal_window_item_changed);
}