Skip to content

Commit 39e5e5c

Browse files
committed
Add comparison dropdown option back
1 parent 64c6723 commit 39e5e5c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Classes/ImportTab.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,9 +585,9 @@ local ImportTabClass = newClass("ImportTab", "ControlHost", "Control", function(
585585
self.controls.importCodeState.label = function()
586586
return self.importCodeDetail or ""
587587
end
588-
self.controls.importCodeMode = new("DropDownControl", {"TOPLEFT",self.controls.importCodeIn,"BOTTOMLEFT"}, {0, 4, 160, 20}, { "Import to this build", "Import to a new build" })
588+
self.controls.importCodeMode = new("DropDownControl", {"TOPLEFT",self.controls.importCodeIn,"BOTTOMLEFT"}, {0, 4, 200, 20}, { "Import to this build", "Import to a new build", "Import as comparison" })
589589
self.controls.importCodeMode.enabled = function()
590-
return self.build.dbFileName and self.importCodeValid
590+
return (self.build.dbFileName or self.controls.importCodeMode.selIndex == 3) and self.importCodeValid
591591
end
592592
self.controls.importCodeGo = new("ButtonControl", {"LEFT",self.controls.importCodeMode,"RIGHT"}, {8, 0, 160, 20}, "Import", function()
593593
if self.importCodeSite and not self.importCodeXML then

0 commit comments

Comments
 (0)