From d777a60c7abf15c83796d23a06f9433bb400280b Mon Sep 17 00:00:00 2001 From: guinux Date: Fri, 5 Feb 2016 11:11:51 +0100 Subject: [PATCH] fix #94, do not show tabs if there are only repos updates --- src/updater_window.vala | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/updater_window.vala b/src/updater_window.vala index 2e1e878..b854855 100644 --- a/src/updater_window.vala +++ b/src/updater_window.vala @@ -196,6 +196,7 @@ namespace Pamac { notebook.set_show_tabs (false); repos_scrolledwindow.set_visible (true); aur_updates_list.clear (); + aur_scrolledwindow.set_visible (false); bottom_label.set_visible (false); Gtk.TreeIter iter; uint64 dsize = 0; @@ -234,12 +235,7 @@ namespace Pamac { } else { bottom_label.set_visible (false); } - if (repos_updates_nb != 0) { - notebook.set_show_tabs (true); - } - if (aur_updates_nb == 0) { - aur_scrolledwindow.set_visible (false); - } else { + if (aur_updates_nb != 0) { aur_scrolledwindow.set_visible (true); if (repos_updates_nb == 0) { repos_scrolledwindow.set_visible (false);