mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Don't reload the current game if selected.
This commit is contained in:
@@ -558,6 +558,10 @@ function openLogLocation(evt) {
|
||||
loot.query('openLogLocation').catch(processCefError);
|
||||
}
|
||||
function changeGame(evt) {
|
||||
/* Check that the selected game isn't the current one. */
|
||||
if (evt.target.className.indexOf('core-selected') != -1) {
|
||||
return;
|
||||
}
|
||||
/* First store current game info in loot.games object.
|
||||
This object may not exist, so initialise it if not. */
|
||||
var index = undefined;
|
||||
|
||||
Reference in New Issue
Block a user