@@ -523,11 +523,11 @@ function ImportTabClass:DownloadCharacterList()
523523 if self .lastLeague then
524524 charSelectLeague :SelByValue (self .lastLeague , " league" )
525525 -- check that it worked
526- if charSelectLeague :GetSelValue (" league" ) ~= self .lastLeague then
526+ if charSelectLeague :GetSelValueByKey (" league" ) ~= self .lastLeague then
527527 -- League maybe over, Character will be in standard
528528 standardLeagueName = FindMatchingStandardLeague (self .lastLeague )
529529 self .controls .charSelectLeague :SelByValue (standardLeagueName , " league" )
530- if charSelectLeague :GetSelValue (" league" ) ~= standardLeagueName then
530+ if charSelectLeague :GetSelValueByKey (" league" ) ~= standardLeagueName then
531531 -- give up and select the first entry. Ruthless mode may not have Standard equivalents
532532 charSelectLeague .selIndex = 1
533533 else
@@ -645,7 +645,7 @@ function ImportTabClass:DownloadPassiveTree()
645645 end
646646 self .lastCharacterHash = common .sha1 (charData .name )
647647 if not self .lastLeague then
648- self .lastLeague = charSelectLeague :GetSelValue (" league" )
648+ self .lastLeague = charSelectLeague :GetSelValueByKey (" league" )
649649 end
650650 self :ImportPassiveTreeAndJewels (response .body , charData )
651651 end , sessionID and { header = " Cookie: POESESSID=" .. sessionID })
@@ -670,7 +670,7 @@ function ImportTabClass:DownloadItems()
670670 end
671671 self .lastCharacterHash = common .sha1 (charData .name )
672672 if not self .lastLeague then
673- self .lastLeague = charSelectLeague :GetSelValue (" league" )
673+ self .lastLeague = charSelectLeague :GetSelValueByKey (" league" )
674674 end
675675 self :ImportItemsAndSkills (response .body )
676676 end , sessionID and { header = " Cookie: POESESSID=" .. sessionID })
@@ -756,7 +756,7 @@ function ImportTabClass:ImportPassiveTreeAndJewels(json, charData)
756756 self .build .spec :BuildClusterJewelGraphs ()
757757 self .build .spec :AddUndoState ()
758758 if not self .lastLeague then
759- self .lastLeague = charSelectLeague :GetSelValue (" league" )
759+ self .lastLeague = charSelectLeague :GetSelValueByKey (" league" )
760760 end
761761 self .build .characterLevel = charData .level
762762 self .build .characterLevelAutoMode = false
0 commit comments