weixin_39716921
weixin_39716921
2020-11-24 19:42

Sidebar indices don't update properly on game change

Reported by here. I can't replicate this, but I think it might be due to the computed binding using this.isLightMaster instead of passing that value into the function.

该提问来源于开源项目:loot/loot

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

7条回答

  • weixin_39716921 weixin_39716921 5月前

    Well, when the load order index isn't visible, it's because Polymer hasn't updated the computed binding even though the underlying data changed (and the item's name, etc. update fine). I can't see why updating the masterlist is necessary to replicate the issue, though I can't without doing so, and I also can't see why only some plugins are effected.

    Double-clicking an item to open the editor fixes it, but opening the editor through a card's menu doesn't, even though neither operation changes any item's data and both affect the UI in the same way. Filtering the list also has no effect.

    I'm guessing this is a Polymer bug, there could be some async operation that does the rendering that's completing a bit too fast or slow... I'll try updating the elements, hopefully that'll fix it.

    EDIT: Nope, it just broke more stuff. 😞 I'm not sure there's anything I can practically do about this issue...

    点赞 评论 复制链接分享
  • weixin_39716921 weixin_39716921 5月前
    点赞 评论 复制链接分享
  • weixin_39680154 weixin_39680154 5月前

    (Still using the old snapshot) I'm currently trying to formulate exact steps to reproduce the issue. I just got this after updating FNV's masterlist and then switching to Fallout 4 (which already had it's masterlist downloaded). It probably is this bug, and not the one discussed here, but better mention it anyway.

    Once I can reproduce it more reliably, I will test with the new snapshot.

    点赞 评论 复制链接分享
  • weixin_39680154 weixin_39680154 5月前

    Alright, I think I got it now. I've tested with "loot_0.12.4-33-g3b912f8_modernise-frontend.7z" and the reproduction steps should be as follows:

    • two games need to be installed, 1. SSE or FO4 and 2: one of the other (older) games
    • in my case, i use SSE and FNV
    • delete %localappdata%\LOOT
    • make sure that FNV's plugins.txt is empty, so that those plugins will be considered inactive (for example like this)
    • start LOOT and switch fo FNV
    • update FNV's masterlist
    • switch to SSE
    • Result
    点赞 评论 复制链接分享
  • weixin_39680154 weixin_39680154 5月前

    "loot_0.12.4-34-gf3fe927_modernise-frontend.7z" is the same, at least in this specific case.

    As of now, I couldn't replicate this with 0.12.4-33.

    点赞 评论 复制链接分享
  • weixin_39680154 weixin_39680154 5月前

    The issue at hand (disappearing index numbers with FNV/SSE) is also present in "loot_0.12.4-0-g62ca11c_dev.7z".

    点赞 评论 复制链接分享
  • weixin_39716921 weixin_39716921 5月前

    Ah, with those instructions I can replicate missing indices like in your result screenshot.

    点赞 评论 复制链接分享

相关推荐