mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
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:
parent
a15f4f1aa8
commit
63b0b031ff
2 changed files with 9 additions and 9 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue