@@ -265,7 +265,9 @@ function CompareTabClass:InitControls()
265265 end
266266 self .controls .reimportBtn .enabled = function ()
267267 local importTab = self .primaryBuild .importTab
268- return importTab and importTab .charImportMode == " SELECTCHAR"
268+ -- check if either oauth or account name import have a character selected
269+ local siteActive = importTab .charImportMode == " SELECTCHAR" and importTab .controls .siteCharSelect :GetSelValue ()
270+ return importTab and (importTab .controls .charSelect :GetSelValue () or siteActive )
269271 end
270272
271273 -- Remove comparison build button
@@ -1265,13 +1267,24 @@ end
12651267-- Re-import primary build using character import (same as Import/Export tab)
12661268function CompareTabClass :ReimportPrimary ()
12671269 local importTab = self .primaryBuild .importTab
1268- -- Set clear checkboxes to true (delete existing jewels, skills, equipment)
1269- importTab .controls .charImportTreeClearJewels .state = true
1270- importTab .controls .charImportItemsClearSkills .state = true
1271- importTab .controls .charImportItemsClearItems .state = true
1272- -- Trigger both async imports (passive tree + items/skills)
1273- importTab :DownloadPassiveTree ()
1274- importTab :DownloadItems ()
1270+
1271+ -- oauth import, if previously selected
1272+ if importTab .controls .charSelect :GetSelValue () then
1273+ -- Set clear checkboxes to true (delete existing jewels, skills, equipment)
1274+ importTab .controls .charImportTreeClearJewels .state = true
1275+ importTab .controls .charImportItemsClearSkills .state = true
1276+ importTab .controls .charImportItemsClearItems .state = true
1277+ -- Trigger both async imports (passive tree + items/skills)
1278+ importTab .controls .charImportTree :Click ()
1279+ importTab .controls .charImportItems :Click ()
1280+ -- account name import
1281+ elseif importTab .controls .siteCharSelect :GetSelValue () then
1282+ importTab .controls .siteCharImportTreeClearJewels .state = true
1283+ importTab .controls .siteCharImportItemsClearSkills .state = true
1284+ importTab .controls .siteCharImportItemsClearItems .state = true
1285+ importTab .controls .siteCharImportTree :Click ()
1286+ importTab .controls .siteCharImportItems :Click ()
1287+ end
12751288end
12761289
12771290-- Update the build selector dropdown
0 commit comments