Skip to content

Commit 68ff79d

Browse files
authored
Update component_manager.py
1 parent 995b2be commit 68ff79d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builder/frameworks/component_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def handle_component_settings(self, add_components: bool = False, remove_compone
5252
remove_components: Whether to process component removals
5353
"""
5454

55-
# Create backup before first component removal
56-
if remove_components and not self.removed_components or add_components and not self.add_components:
55+
# Create backup before first component removal and alwyas when a component is added
56+
if remove_components and not self.removed_components or add_components:
5757
self._backup_pioarduino_build_py()
5858
self._log_change("Created backup of build file")
5959

0 commit comments

Comments
 (0)