Skip to content

Commit

Permalink
UI|Home: Added menu option for configuring .box add-ons
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jul 2, 2016
1 parent b0920b2 commit a5b3ceb
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions doomsday/apps/client/src/ui/home/packagescolumnwidget.cpp
Expand Up @@ -31,6 +31,7 @@

#include <doomsday/DoomsdayApp>
#include <doomsday/Games>
#include <doomsday/resource/databundle.h>

using namespace de;

Expand All @@ -54,7 +55,6 @@ static PopupWidget *makePackageFoldersDialog()
}

DENG_GUI_PIMPL(PackagesColumnWidget)
//, DENG2_OBSERVES(Games, Readiness)
{
PackagesWidget *packages;
LabelWidget *countLabel;
Expand All @@ -73,7 +73,14 @@ DENG_GUI_PIMPL(PackagesColumnWidget)
<< new ui::SubwidgetItem(tr("Info"), ui::Down,
[this, packageId] () -> PopupWidget * {
return new PackagePopupWidget(packageId);
})
});
if (DataBundle::packageBundleFormat(packageId) == DataBundle::Collection)
{
popMenu->items()
<< new ui::ActionItem(style().images().image("gear"),
tr("Select Packages"));
}
popMenu->items()
<< new ui::Item(ui::Item::Separator)
<< new ui::ActionItem(style().images().image("close.ring"), tr("Uninstall..."));
return popMenu;
Expand Down

0 comments on commit a5b3ceb

Please sign in to comment.