reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit db94385a621b078fc76efb0a6b73d61eb72ed299
parent 80c86070a10a3993929c9c2cb3580aab7721e39c
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Wed, 16 Mar 2016 21:22:22 -0400

show obsolete packages in the browser

Diffstat:
Msrc/browser.cpp | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/browser.cpp b/src/browser.cpp @@ -130,6 +130,16 @@ void Browser::reload() for(IndexPtr index : m_indexes) { for(const Package *pkg : index->packages()) m_entries.push_back({pkg->lastVersion(), reg.getEntry(pkg)}); + + // obsolete packages + for(const Registry::Entry &entry : reg.getEntries(index->name())) { + const Category *cat = index->category(entry.category); + + if(cat && cat->package(entry.package)) + continue; + + m_entries.push_back({nullptr, entry}); + } } fillList();