From 4c25279f918ae36ba71ef3eca750c782a42be485 Mon Sep 17 00:00:00 2001 From: Marcel Ploemacher Date: Wed, 25 Mar 2026 13:13:59 +0100 Subject: [PATCH] Added check for file ending --- .../OssCadSuiteIntegrationModule.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/OneWare.OssCadSuiteIntegration/OssCadSuiteIntegrationModule.cs b/src/OneWare.OssCadSuiteIntegration/OssCadSuiteIntegrationModule.cs index 3e4bb5433..2a7b7fccc 100644 --- a/src/OneWare.OssCadSuiteIntegration/OssCadSuiteIntegrationModule.cs +++ b/src/OneWare.OssCadSuiteIntegration/OssCadSuiteIntegrationModule.cs @@ -609,8 +609,9 @@ await serviceProvider.Resolve().OpenInGtkWaveAsync(wave.FullPath fpgaService.RegisterProjectEntryModification(x => { if (x.Root is not UniversalFpgaProjectRoot universalFpgaProjectRoot) return; - - if (x is IProjectFile file && YosysSettingHelper.GetConstraintFile(universalFpgaProjectRoot) == file.RelativePath) + if (!(x is IProjectFile file && file.Extension == ".pcf")) return; + + if (YosysSettingHelper.GetConstraintFile(universalFpgaProjectRoot) == file.RelativePath) { x.Icon?.AddOverlay("ConstraintFile", "ForkAwesome.Check"); }