From 0ff217113a5a7a9593dcd97bd895f5491116f13b Mon Sep 17 00:00:00 2001 From: Nav Date: Tue, 24 Aug 2021 20:10:45 +0100 Subject: [PATCH] Disabled insight support for target variants with more than 100 pins --- .../UserInterfaces/InsightWindow/InsightWindow.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp b/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp index dd7a25ea..b58ff350 100644 --- a/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp +++ b/src/Insight/UserInterfaces/InsightWindow/InsightWindow.cpp @@ -260,6 +260,16 @@ void InsightWindow::deactivate() { } bool InsightWindow::isVariantSupported(const TargetVariant& variant) { + /* + * Because the size of the pin body widget is fixed, for all of our target package widgets, we run out of screen + * estate for target variants with more than 100 pins. + * + * This will be addressed at some point, but for now, we just won't support variants with more than 100 pins. + */ + if (variant.pinDescriptorsByNumber.size() > 100) { + return false; + } + if (variant.package == TargetPackage::DIP || variant.package == TargetPackage::SOIC || variant.package == TargetPackage::SSOP