Bugfix: macros will be executed automatically again after package installation. Maybe less restarts needed.

This commit is contained in:
Matthias Koefferlein 2025-08-05 20:57:38 +02:00
parent 4dbc103523
commit 847ec03f52
1 changed files with 6 additions and 6 deletions

View File

@ -383,6 +383,12 @@ MacroController::sync_package_paths ()
void
MacroController::sync_implicit_macros (bool ask_before_autorun)
{
// determine the paths currently in use
std::map<std::string, ExternalPathDescriptor> prev_folders_by_path;
for (std::vector<ExternalPathDescriptor>::const_iterator p = m_external_paths.begin (); p != m_external_paths.end (); ++p) {
prev_folders_by_path.insert (std::make_pair (p->path, *p));
}
// gets the external paths (tech, packages) into m_external_paths
sync_macro_sources ();
@ -392,12 +398,6 @@ MacroController::sync_implicit_macros (bool ask_before_autorun)
} else {
// determine the paths currently in use
std::map<std::string, ExternalPathDescriptor> prev_folders_by_path;
for (std::vector<ExternalPathDescriptor>::const_iterator p = m_external_paths.begin (); p != m_external_paths.end (); ++p) {
prev_folders_by_path.insert (std::make_pair (p->path, *p));
}
// delete macro collections which are no longer required or update description
std::vector<lym::MacroCollection *> folders_to_delete;