From dfb6036bd1443bcf9bc1264b32ee39b659687ea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 2 Feb 2024 17:43:34 +0100 Subject: [PATCH] Fix cloud picker to refresh properly after clicking Manage accounts --- src/cloud_accounts_ui.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cloud_accounts_ui.cpp b/src/cloud_accounts_ui.cpp index 8e827d6661..da53c1adf1 100644 --- a/src/cloud_accounts_ui.cpp +++ b/src/cloud_accounts_ui.cpp @@ -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); @@ -732,9 +733,8 @@ class CloudOpenDialog : public wxDialog void OnManageAccounts(wxHyperlinkEvent&) { - ManageAccounts>([=](bool ok){ - if (ok) - LoadFromCloud(nullptr); + ManageAccounts>([=](bool /*ok*/) { + LoadFromCloud(nullptr); }); }