mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
wins_show_subwin(): Add windows type test
Fix https://github.com/profanity-im/profanity/issues/1321
This commit is contained in:
parent
5ec1b03cbc
commit
bad56b5062
@ -742,6 +742,12 @@ wins_show_subwin(ProfWin *window)
|
|||||||
{
|
{
|
||||||
win_show_subwin(window);
|
win_show_subwin(window);
|
||||||
|
|
||||||
|
// only mucwin and console have occupants/roster subwin
|
||||||
|
if (window->type != WIN_MUC ||
|
||||||
|
window->type != WIN_CONSOLSE) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
ProfWin *current_win = wins_get_current();
|
ProfWin *current_win = wins_get_current();
|
||||||
win_refresh_with_subwin(current_win);
|
win_refresh_with_subwin(current_win);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user