Skip to content

Commit 969a653

Browse files
committed
include compared builds in save name
1 parent 0b1517d commit 969a653

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/Classes/BuildListControl.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,13 @@ function BuildListClass:GetRowValue(column, index, build)
175175
label = ">> " .. build.folderName
176176
else
177177
label = build.buildName or "?"
178+
if build.compareLabels and #build.compareLabels > 0 then
179+
if #build.compareLabels == 1 then
180+
label = label .. " (+" .. build.compareLabels[1] .. ")"
181+
else
182+
label = label .. " (+" .. #build.compareLabels .. " compared builds)"
183+
end
184+
end
178185
end
179186
if self.cutBuild and self.cutBuild.buildName == build.buildName and self.cutBuild.folderName == build.folderName then
180187
return "^xC0B0B0"..label

src/Modules/BuildList.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,10 @@ function listMode:BuildList()
220220
main:OpenCloudErrorPopup(build.fullFileName)
221221
return
222222
end
223+
build.compareLabels = { }
224+
for label in fileText:gmatch('<CompareEntry[^>]-label="([^"]*)"') do
225+
t_insert(build.compareLabels, label)
226+
end
223227
fileText = fileText:match("(<Build.->)")
224228
if fileText then
225229
local xml = common.xml.ParseXML(fileText.."</Build>")

0 commit comments

Comments
 (0)