mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
ide: Fixed unitialized PkData::upphub problem
This commit is contained in:
parent
1a0922b860
commit
68da7bbf20
2 changed files with 7 additions and 8 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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; }
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue