Kapiainen / Lauhdutin

A Rainmeter skin for launching games.
MIT License
67 stars 8 forks source link

Show uninstalled and hidden not working as expected #103

Closed BanCrash closed 6 years ago

BanCrash commented 7 years ago

Hello, I found two issues with the feature of showing uninstalled and hidden games:

BanCrash commented 7 years ago

I have an idea to solve this:

First, here could be added all games (hidden, uninstalled and installed) regardless the settings.

Then, will be selected on every filter the necessary games. For example, for uninstalled games:

for i, tGame in ipairs(T_ALL_GAMES) do
    if tGame[E_GAME_KEYS.NOT_INSTALLED] == true then
        if (tGame[E_GAME_KEYS.HIDDEN] and T_SETTINGS[E_SETTING_KEYS.SHOW_HIDDEN_GAMES])
            or not tGame[E_GAME_KEYS.HIDDEN] then
                table.insert(tResult, tGame)
        end
    end
end

I will work on this solution and made a PR when it's done.