Skip to content

Commit

Permalink
replaced broken failed preset load popup with log warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
lshoek committed Sep 12, 2022
1 parent fe7e6b0 commit e2afdd7
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions modules/napparametergui/src/parametergui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,8 @@ namespace nap
ImGui::CloseCurrentPopup();
}
else
ImGui::OpenPopup("Failed to load preset");

if (ImGui::BeginPopupModal("Failed to load preset"))
{
ImGui::Text(errorState.toString().c_str());
if (ImGui::ImageButton(mGUIService.getIcon(icon::ok)))
{
ImGui::CloseCurrentPopup();
}

ImGui::EndPopup();
nap::Logger::warn("Failed to load preset: %s", errorState.toString().c_str());
}
}
ImGui::SameLine();
Expand All @@ -69,7 +60,6 @@ namespace nap
restorePresetState();
ImGui::CloseCurrentPopup();
}

ImGui::EndPopup();
}
}
Expand Down

0 comments on commit e2afdd7

Please sign in to comment.