Optimize syncback process and enhance patch selection logic

- Improved the syncback functionality by detecting unchanged output file hashes to avoid unnecessary writes, optimizing performance for larger projects.
- Updated the patch selection logic to ensure that auto-selection only occurs when the current selection matches the default, enhancing user experience during patch reviews.

These changes aim to streamline file synchronization and improve the clarity of patch management in the application.
This commit is contained in:
Joe 2026-03-01 06:43:25 -06:00
parent a15f4f1aa8
commit 63b0b031ff
2 changed files with 9 additions and 9 deletions

View file

@ -1153,7 +1153,11 @@ function App:render()
local autoSelectedIds = {}
if self.state.patchTree then
self.state.patchTree:forEach(function(node)
if node.patchType and node.defaultSelection ~= nil then
if
node.patchType
and node.defaultSelection ~= nil
and selections[node.id] == node.defaultSelection
then
autoSelectedIds[node.id] = true
end
end)