mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
/SET windows_auto_renumber - should window refnums be packed when some
window is destroyed git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1047 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4613196cd2
commit
3ef279fd1c
@ -116,7 +116,8 @@ void window_destroy(WINDOW_REC *window)
|
|||||||
while (window->items != NULL)
|
while (window->items != NULL)
|
||||||
window_item_destroy(window, window->items->data);
|
window_item_destroy(window, window->items->data);
|
||||||
|
|
||||||
windows_pack(window->refnum);
|
if (settings_get_bool("windows_auto_renumber"))
|
||||||
|
windows_pack(window->refnum);
|
||||||
|
|
||||||
signal_emit("window destroyed", 1, window);
|
signal_emit("window destroyed", 1, window);
|
||||||
|
|
||||||
@ -484,6 +485,7 @@ void windows_init(void)
|
|||||||
active_win = NULL;
|
active_win = NULL;
|
||||||
daycheck = 0; daytag = -1;
|
daycheck = 0; daytag = -1;
|
||||||
settings_add_bool("lookandfeel", "window_auto_change", FALSE);
|
settings_add_bool("lookandfeel", "window_auto_change", FALSE);
|
||||||
|
settings_add_bool("lookandfeel", "windows_auto_renumber", TRUE);
|
||||||
|
|
||||||
read_settings();
|
read_settings();
|
||||||
signal_add("server looking", (SIGNAL_FUNC) sig_server_looking);
|
signal_add("server looking", (SIGNAL_FUNC) sig_server_looking);
|
||||||
|
Loading…
Reference in New Issue
Block a user