HaikuDepot: Contents for Local Pkg

Enables the content tab for showing contents of
on-disk, but not yet installed package.

Resolves #16161

Change-Id: I5e4764cf3e9f1e46eafb3d98917a357fece854dc
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2853
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Andrew Lindesay 2020-05-31 15:29:03 +12:00 committed by waddlesplash
parent 50c7fbacb7
commit 6178aeb315

View File

@ -1251,7 +1251,8 @@ public:
TabAt(TAB_CHANGELOG)->SetEnabled(
package.Get() != NULL && package->HasChangelog());
TabAt(TAB_CONTENTS)->SetEnabled(
package.Get() != NULL && package->State() == ACTIVATED);
package.Get() != NULL
&& (package->State() == ACTIVATED || package->IsLocalFile()));
Invalidate(TabFrame(TAB_CHANGELOG));
Invalidate(TabFrame(TAB_CONTENTS));