mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Don't act on the changeGame event during init
The event is fired when setting the initial game menu selection, before the game data is loaded, so there's no point processing the event.
This commit is contained in:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user