Fix pcm fallback loading

Need to add a fake version otherwise the package gets filtered out of
the packages view.
This commit is contained in:
qu1ck 2021-11-09 21:09:09 -08:00 committed by Jon Evans
parent b408cda0b8
commit 54e9f1cf24
1 changed files with 7 additions and 0 deletions

View File

@ -150,6 +150,13 @@ PLUGIN_CONTENT_MANAGER::PLUGIN_CONTENT_MANAGER( wxWindow* aParent ) : m_dialog(
if( stat_code == 0 )
entry.install_timestamp = stat.st_mtime;
PACKAGE_VERSION version;
version.version = "0.0";
version.status = PVS_STABLE;
version.kicad_version = KICAD_MAJOR_MINOR_VERSION;
entry.package.versions.emplace_back( version );
m_installed.emplace( actual_package_id, entry );
}