Skip to content

Commit

Permalink
pkgi: prevent comp pack installation if not in games mode
Browse files Browse the repository at this point in the history
  • Loading branch information
blastrock committed Jul 25, 2018
1 parent 1916a77 commit ea59f7f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pkgi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,9 @@ static void pkgi_do_main(Downloader& downloader, pkgi_input* input)
}
else if (input && (input->pressed & PKGI_BUTTON_LT))
{
if (mode != ModeGames)
return;

input->pressed &= ~PKGI_BUTTON_LT;

if (selected_item >= db->count())
Expand Down Expand Up @@ -879,7 +882,7 @@ static void pkgi_do_tail(Downloader& downloader)
else
{
DbItem* item = db->get(selected_item);
if (item && item->presence == PresenceInstalled)
if (mode == ModeGames && item && item->presence == PresenceInstalled)
bottom_text = fmt::format(
"L {} ",
downloader.is_in_queue(item->titleid)
Expand Down

0 comments on commit ea59f7f

Please sign in to comment.