Revert "Removed unused gameList and gameSelection ids"

This reverts commit 34b6004ad3e612892391ab4b1537274d78802193.
This commit is contained in:
Jorys_Paulin 2018-06-12 12:56:45 +02:00
parent 5a30f4c983
commit 744ff01e64

View File

@ -485,11 +485,14 @@ function showApps(host) {
} }
console.log('%c[index.js, showApps]', 'color: green;', 'Current host object:', host, host.toString()); //Logging both object (for console) and toString-ed object (for text logs) console.log('%c[index.js, showApps]', 'color: green;', 'Current host object:', host, host.toString()); //Logging both object (for console) and toString-ed object (for text logs)
$('#quitCurrentApp').show(); $('#quitCurrentApp').show();
$("#gameList .game-container").remove();
// Show a spinner while the applist loads // Show a spinner while the applist loads
$('#naclSpinnerMessage').text('Loading apps...'); $('#naclSpinnerMessage').text('Loading apps...');
$('#naclSpinner').css('display', 'inline-block'); $('#naclSpinner').css('display', 'inline-block');
$("div.game-container").remove();
host.getAppList().then(function(appList) { host.getAppList().then(function(appList) {
$('#naclSpinner').hide(); $('#naclSpinner').hide();
$("#game-grid").show(); $("#game-grid").show();
@ -874,6 +877,8 @@ function updateDefaultBitrate() {
function onWindowLoad() { function onWindowLoad() {
console.log('%c[index.js]', 'color: green;', 'Moonlight\'s main window loaded'); console.log('%c[index.js]', 'color: green;', 'Moonlight\'s main window loaded');
// don't show the game selection div
$('#gameSelection').css('display', 'none');
loadWindowState(); loadWindowState();