⛏️ index : haiku.git

author Andrew Lindesay <apl@lindesay.co.nz> 2020-05-31 15:29:03.0 +12:00:00
committer waddlesplash <waddlesplash@gmail.com> 2020-06-01 0:34:15.0 +00:00:00
commit
52267970dda5c19ceb46c71f667fb7dd7430ef32 [patch]
tree
dff2650c34b4753f29734b9d0e1dec8748e2f4f7
parent
06f5af9c4d141398d4031d46d87b982724ee0a0a
download
52267970dda5c19ceb46c71f667fb7dd7430ef32.tar.gz

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>
(cherry picked from commit 6178aeb315962fd92fb8b0bbbae7e075570aaa30)
Reviewed-on: https://review.haiku-os.org/c/haiku/+/2857

Diff

 src/apps/haikudepot/ui/PackageInfoView.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/apps/haikudepot/ui/PackageInfoView.cpp b/src/apps/haikudepot/ui/PackageInfoView.cpp
index a0b05d0..947c7ce 100644
--- a/src/apps/haikudepot/ui/PackageInfoView.cpp
+++ b/src/apps/haikudepot/ui/PackageInfoView.cpp
@@ -1252,7 +1252,8 @@
		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));