mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Scroll to target plugin after conflict filtering
This helps users identify the plugin in the list and quickly see what other plugins are around it.
This commit is contained in:
@@ -422,6 +422,12 @@ function onConflictsFilter(evt) {
|
||||
}
|
||||
});
|
||||
loot.filters.apply(loot.game.plugins);
|
||||
|
||||
/* Scroll to the target plugin */
|
||||
const list = document.getElementById('pluginCardList');
|
||||
const index = list.items.findIndex(item => item.name === evt.target.value);
|
||||
list.scrollToIndex(index);
|
||||
|
||||
loot.Dialog.closeProgress();
|
||||
}).catch(loot.handlePromiseError);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user