fix #94, do not show tabs if there are only repos updates

This commit is contained in:
guinux 2016-02-05 11:11:51 +01:00
parent 6a0741e600
commit d777a60c7a

View File

@ -196,6 +196,7 @@ namespace Pamac {
notebook.set_show_tabs (false); notebook.set_show_tabs (false);
repos_scrolledwindow.set_visible (true); repos_scrolledwindow.set_visible (true);
aur_updates_list.clear (); aur_updates_list.clear ();
aur_scrolledwindow.set_visible (false);
bottom_label.set_visible (false); bottom_label.set_visible (false);
Gtk.TreeIter iter; Gtk.TreeIter iter;
uint64 dsize = 0; uint64 dsize = 0;
@ -234,12 +235,7 @@ namespace Pamac {
} else { } else {
bottom_label.set_visible (false); bottom_label.set_visible (false);
} }
if (repos_updates_nb != 0) { if (aur_updates_nb != 0) {
notebook.set_show_tabs (true);
}
if (aur_updates_nb == 0) {
aur_scrolledwindow.set_visible (false);
} else {
aur_scrolledwindow.set_visible (true); aur_scrolledwindow.set_visible (true);
if (repos_updates_nb == 0) { if (repos_updates_nb == 0) {
repos_scrolledwindow.set_visible (false); repos_scrolledwindow.set_visible (false);