gui: Fix 'Show Packages' button needed to be clicked twice in some cases