diff --git a/src/gui/html/js/events.js b/src/gui/html/js/events.js index 8a1f08a2..47f6a92f 100644 --- a/src/gui/html/js/events.js +++ b/src/gui/html/js/events.js @@ -37,7 +37,9 @@ function onConflictsFilter(evt) { } function onChangeGame(evt) { - if (evt.detail.item.getAttribute('value') === loot.game.folder) { + if (evt.detail.item.getAttribute('value') === loot.game.folder + || loot.game.folder.length === 0) { + // Game folder length is zero if LOOT is being initalised. return; } /* Send off a CEF query with the folder name of the new game. */