Skip to content

Commit

Permalink
Fix cloud picker to refresh properly after clicking Manage accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
vslavik committed Feb 2, 2024
1 parent 629da53 commit dfb6036
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cloud_accounts_ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ class CloudOpenDialog : public wxDialog
{
SortAlphabetically(m_projects, [](const auto& p){ return p.name; });

m_project->Clear();
m_project->Append("");
for (auto& p: m_projects)
m_project->Append(p.name);
Expand Down Expand Up @@ -732,9 +733,8 @@ class CloudOpenDialog : public wxDialog

void OnManageAccounts(wxHyperlinkEvent&)
{
ManageAccounts<CloudEditLoginDialog<AccountsPanel>>([=](bool ok){
if (ok)
LoadFromCloud(nullptr);
ManageAccounts<CloudEditLoginDialog<AccountsPanel>>([=](bool /*ok*/) {
LoadFromCloud(nullptr);
});
}

Expand Down

0 comments on commit dfb6036

Please sign in to comment.