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:
parent
4bf67fb35a
commit
b0e70e6caa
@ -302,6 +302,9 @@ static int
|
|||||||
_status_bar_draw_extended_tabs(int pos)
|
_status_bar_draw_extended_tabs(int pos)
|
||||||
{
|
{
|
||||||
gint max_tabs = prefs_get_statusbartabs();
|
gint max_tabs = prefs_get_statusbartabs();
|
||||||
|
if (max_tabs == 0) {
|
||||||
|
return pos;
|
||||||
|
}
|
||||||
|
|
||||||
if (g_hash_table_size(statusbar->tabs) > max_tabs) {
|
if (g_hash_table_size(statusbar->tabs) > max_tabs) {
|
||||||
gboolean is_current = statusbar->current_tab > max_tabs;
|
gboolean is_current = statusbar->current_tab > max_tabs;
|
||||||
|
Loading…
Reference in New Issue
Block a user