Skip to content

Commit

Permalink
qt-cpp: Add comment for possible duplicate kits
Browse files Browse the repository at this point in the history
Change-Id: I6e6f755d8a8fa8349f9d297329517e24df752ab9
Reviewed-by: Marcus Tillmanns <[email protected]>
  • Loading branch information
OrkunTokdemir committed Oct 7, 2024
1 parent c8bbfd7 commit 7448bb7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qt-cpp/src/kit-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@ export class KitManager {
: CMAKE_GLOBAL_KITS_FILEPATH;
const currentKits = await KitManager.parseCMakeKitsFile(cmakeKitsFile);
const newKits = currentKits.filter((kit) => {
// filter kits if previousQtKits contains the kit with the same name
// Filter kits if previousQtKits contains the kit with the same name
// Otherwise, we will have duplicate Qt kits.
return !previousQtKits.find((prevKit) => prevKit.name === kit.name);
});
newKits.push(...newGeneratedKits);
Expand Down

0 comments on commit 7448bb7

Please sign in to comment.