FIX: [STUDIO-1556] not show plugin download dialog again

Change-Id: I7eccb94f7c6ba69fe316c374b5f19f57cbc0fa18
This commit is contained in:
chunmao.guo 2023-01-09 14:37:57 +08:00 committed by Lane.Wei
parent 92022bd809
commit 225b68034e
1 changed files with 5 additions and 0 deletions

View File

@ -3092,6 +3092,11 @@ void GUI_App::ShowUserGuide() {
void GUI_App::ShowDownNetPluginDlg() {
try {
auto iter = std::find_if(dialogStack.begin(), dialogStack.end(), [](auto dialog) {
return dynamic_cast<DownloadProgressDialog *>(dialog) != nullptr;
});
if (iter != dialogStack.end())
return;
DownloadProgressDialog dlg(_L("Downloading Bambu Network Plug-in"));
dlg.ShowModal();
} catch (std::exception &e) {