Merge pull request #1564 from KLayout/issue-1563

Issue 1563
This commit is contained in:
Matthias Köfferlein 2023-12-08 17:44:29 +01:00 committed by GitHub
commit f757a0a944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 1 deletions

View File

@ -284,7 +284,7 @@ echo "Making .zip file $zipname.zip .."
rm -rf $zipname $zipname.zip
mkdir $zipname
cp -Rv *.dll .*-paths.txt db_plugins lay_plugins $plugins lib $zipname | sed -u 's/.*/echo -n ./' | sh
cp -Rv *.dll cert.pem .*-paths.txt db_plugins lay_plugins $plugins lib $zipname | sed -u 's/.*/echo -n ./' | sh
cp klayout.exe $zipname/klayout_app.exe
cp klayout.exe $zipname/klayout_vo_app.exe
echo ""

View File

@ -56,6 +56,15 @@ MacroController::add_macro_category (const std::string &name, const std::string
cat.name = name;
cat.description = description;
cat.folders = folders;
// replace an existing category or add to back
for (auto c = m_macro_categories.begin (); c != m_macro_categories.end (); ++c) {
if (c->name == name) {
*c = cat;
return;
}
}
m_macro_categories.push_back (cat);
}