ide: Fixed unitialized PkData::upphub problem

This commit is contained in:
Mirek Fidler 2024-11-24 11:08:25 +01:00
parent 1a0922b860
commit 68da7bbf20
2 changed files with 7 additions and 8 deletions

View file

@ -714,7 +714,7 @@ void SelectPackageDlg::ScanFolder(const String& path, ArrayMap<String, PkData>&
String SelectPackageDlg::CachePath(const char *vn) const
{
return AppendFileName(ConfigFile("cfg"), String(vn) + ".pkg_cache");
return AppendFileName(ConfigFile("cfg"), String(vn) + ".pkg_cache_new");
}
void SelectPackageDlg::Load(const String& find)

View file

@ -168,19 +168,18 @@ struct SelectPackageDlg : public WithSelectPackageLayout<TopWindow> {
String description;
String nest;
Image icon;
bool main;
bool upphub;
bool main = false;
bool upphub = false;
bool operator<(const PkInfo& b) const { return PackageLess(package, b.package); }
PkInfo() { main = false; }
};
struct PkData : PkInfo {
bool ispackage;
Time tm, itm;
bool ispackage = true;
Time tm = Null;
Time itm = Null;
void Serialize(Stream& s) { s % package % description % nest % icon % main % ispackage % tm % itm; }
void Serialize(Stream& s) { s % package % description % nest % icon % main % ispackage % tm % itm % upphub; }
PkData() { tm = itm = Null; ispackage = true; }
};