Merge lp:~donadigo/appcenter/fix-get-can-launch into lp:~elementary-apps/appcenter/appcenter
Proposed by
Adam Bieńkowski
Status: | Merged |
---|---|
Approved by: | David Hewitt |
Approved revision: | 405 |
Merged at revision: | 405 |
Proposed branch: | lp:~donadigo/appcenter/fix-get-can-launch |
Merge into: | lp:~elementary-apps/appcenter/appcenter |
Diff against target: |
49 lines (+15/-8) 1 file modified
src/Core/Package.vala (+15/-8) |
To merge this branch: | bzr merge lp:~donadigo/appcenter/fix-get-can-launch |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
David Hewitt | code, function | Approve | |
Review via email: mp+317789@code.launchpad.net |
Commit message
* Fix open button appearing on apps which cannot be launched
Description of the change
This branch fixes how get_can_launch () method works in Package class.
get_can_launch used to use Component.
It now creates a DesktopAppInfo which will be verified and if the AppInfo doesn't exist, it will return null so the method will return false.
To post a comment you must log in.
Stops the open button appearing on OS Updates and things you wouldn't expect to have an open button. Everything else still works.