1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Dont show extended tabs when max 0

This commit is contained in:
James Booth 2018-03-10 22:54:02 +00:00
parent 4bf67fb35a
commit b0e70e6caa

View File

@ -302,6 +302,9 @@ static int
_status_bar_draw_extended_tabs(int pos)
{
gint max_tabs = prefs_get_statusbartabs();
if (max_tabs == 0) {
return pos;
}
if (g_hash_table_size(statusbar->tabs) > max_tabs) {
gboolean is_current = statusbar->current_tab > max_tabs;