Simplify an if statement. The logic is identical, but easier to read (#314)

This commit is contained in:
Stephen Collins 2019-06-20 10:29:36 -06:00 committed by JosephMcc
parent 7bdc217e8c
commit dde92eecbf
1 changed files with 1 additions and 9 deletions

View File

@ -2752,19 +2752,11 @@ notebook_tab_removed (XedNotebook *notebook,
gtk_widget_hide (window->priv->language_button); gtk_widget_hide (window->priv->language_button);
} }
if (!window->priv->removing_tabs) if (!window->priv->removing_tabs || window->priv->num_tabs == 0)
{ {
update_documents_list_menu (window); update_documents_list_menu (window);
update_next_prev_doc_sensitivity_per_window (window); update_next_prev_doc_sensitivity_per_window (window);
} }
else
{
if (window->priv->num_tabs == 0)
{
update_documents_list_menu (window);
update_next_prev_doc_sensitivity_per_window (window);
}
}
update_sensitivity_according_to_open_tabs (window); update_sensitivity_according_to_open_tabs (window);