mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-05-15 14:15:49 -06:00
fix GitLab connect error.
Окно информации при ошибке соединения с GitLab.
This commit is contained in:
parent
2ae4b5f163
commit
2bb2ff25cf
1 changed files with 7 additions and 0 deletions
|
|
@ -551,6 +551,11 @@ ctlGitPanel::ctlGitPanel(wxWindow* parent, frmMain* form, wxJSONValue cf) :
|
|||
&ctlGitPanel::OnProgressTimer, this);
|
||||
|
||||
GetBranchList(true);
|
||||
if (!error_msg.IsEmpty()) {
|
||||
// error connect
|
||||
wxLogError("GitLab connect error.\n%s", error_msg);
|
||||
return;
|
||||
}
|
||||
// load pgadmin3.json
|
||||
wxString jsonText = GetRepositoryFile("main", "pgadmin3.json");
|
||||
if (!jsonText.IsEmpty()) {
|
||||
|
|
@ -760,6 +765,8 @@ void ctlGitPanel::GetBranchList(bool refresh) {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (currentDBname.IsEmpty()) return;
|
||||
|
||||
if (i >= m_Branch_List_Ctrl->GetCount()) {
|
||||
CommandBranch(currentDBname, "create");
|
||||
m_Branch_List_Ctrl->Append(currentDBname);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue