mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
ide: assembly origin experiment removed
This commit is contained in:
parent
455a52ea69
commit
91165d0400
2 changed files with 0 additions and 30 deletions
|
|
@ -839,31 +839,6 @@ void SelectPackageDlg::SyncBase(String initvars)
|
|||
else
|
||||
OnBase();
|
||||
}
|
||||
load_origin = 0;
|
||||
|
||||
PostCallback([=] { LoadOrigins(); });
|
||||
}
|
||||
|
||||
void SelectPackageDlg::LoadOrigins()
|
||||
{
|
||||
int tlim = msecs();
|
||||
if(load_origin >= base.GetCount())
|
||||
return;
|
||||
VectorMap<String, String> var;
|
||||
String n = ~base.Get(load_origin, 0);
|
||||
LoadVarFile(ConfigFile(n + ".var"), var);
|
||||
String d = Split(var.Get("UPP", ""), ';').At(0);
|
||||
if(d.GetCount()) {
|
||||
dword h = xxHash(GitCmd(d, "config --get remote.origin.url"));
|
||||
int r = h & 15; h >>= 4;
|
||||
int g = h & 15; h >>= 4;
|
||||
int b = h & 15;
|
||||
base.Set(load_origin, 1, AttrText(n).NormalPaper(IsDarkTheme() ? Color(30 + r, 30 + g, 30 + g)
|
||||
: Color(240 + r, 240 + g, 240 + b)));
|
||||
}
|
||||
|
||||
if(++load_origin < base.GetCount())
|
||||
PostCallback([=] { LoadOrigins(); });
|
||||
}
|
||||
|
||||
bool SelectPackageDlg::Pless(const SelectPackageDlg::PkInfo& a, const SelectPackageDlg::PkInfo& b)
|
||||
|
|
|
|||
|
|
@ -154,9 +154,6 @@ struct SelectPackageDlg : public WithSelectPackageLayout<TopWindow> {
|
|||
ProgressIndicator progress;
|
||||
StatusBar lists_status;
|
||||
|
||||
TimeCallback tm;
|
||||
int load_origin = 0;
|
||||
|
||||
Vector<String> nest_list;
|
||||
|
||||
bool selectvars;
|
||||
|
|
@ -232,8 +229,6 @@ struct SelectPackageDlg : public WithSelectPackageLayout<TopWindow> {
|
|||
void PackageMenu(Bar& bar);
|
||||
void MovePackage(bool copy);
|
||||
|
||||
void LoadOrigins();
|
||||
|
||||
enum {
|
||||
MAIN = 1, NONMAIN = 2, ALL = 0x8000, UPPHUB = 0x4000, NEST_MASK = 0xfff
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue