forked from PsychoticNinja/irssi
/SET window_close_on_part -> /SET autoclose_windows
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@394 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
77adc998ef
commit
6b7d03e2cf
@ -241,7 +241,9 @@ void window_item_create(WI_ITEM_REC *item, int automatic)
|
|||||||
str = item->server == NULL ? NULL :
|
str = item->server == NULL ? NULL :
|
||||||
g_strdup_printf("%s %s", ((SERVER_REC *) item->server)->tag, item->name);
|
g_strdup_printf("%s %s", ((SERVER_REC *) item->server)->tag, item->name);
|
||||||
|
|
||||||
reuse_unused_windows = settings_get_bool("reuse_unused_windows");
|
reuse_unused_windows =
|
||||||
|
settings_get_bool("autoclose_windows") &&
|
||||||
|
settings_get_bool("reuse_unused_windows") ;
|
||||||
|
|
||||||
clear_waiting = TRUE;
|
clear_waiting = TRUE;
|
||||||
window = NULL;
|
window = NULL;
|
||||||
|
@ -59,7 +59,7 @@ static void signal_channel_destroyed(CHANNEL_REC *channel)
|
|||||||
window_remove_item(window, (WI_ITEM_REC *) channel);
|
window_remove_item(window, (WI_ITEM_REC *) channel);
|
||||||
|
|
||||||
if (windows->next != NULL && (!channel->joined || channel->left) &&
|
if (windows->next != NULL && (!channel->joined || channel->left) &&
|
||||||
settings_get_bool("window_close_on_part")) {
|
settings_get_bool("autoclose_windows")) {
|
||||||
window_destroy(window);
|
window_destroy(window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -250,7 +250,7 @@ static void cmd_channel_remove(const char *data)
|
|||||||
|
|
||||||
void fe_channels_init(void)
|
void fe_channels_init(void)
|
||||||
{
|
{
|
||||||
settings_add_bool("lookandfeel", "window_close_on_part", TRUE);
|
settings_add_bool("lookandfeel", "autoclose_windows", TRUE);
|
||||||
|
|
||||||
signal_add("channel created", (SIGNAL_FUNC) signal_channel_created);
|
signal_add("channel created", (SIGNAL_FUNC) signal_channel_created);
|
||||||
signal_add("channel destroyed", (SIGNAL_FUNC) signal_channel_destroyed);
|
signal_add("channel destroyed", (SIGNAL_FUNC) signal_channel_destroyed);
|
||||||
|
@ -72,7 +72,7 @@ static void signal_query_destroyed(QUERY_REC *query)
|
|||||||
window_remove_item(window, (WI_ITEM_REC *) query);
|
window_remove_item(window, (WI_ITEM_REC *) query);
|
||||||
|
|
||||||
if (windows->next != NULL && !query->unwanted &&
|
if (windows->next != NULL && !query->unwanted &&
|
||||||
settings_get_bool("window_close_on_part"))
|
settings_get_bool("autoclose_windows"))
|
||||||
window_destroy(window);
|
window_destroy(window);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user