Hey
WillyJL remember how I said you should look into saving the game names as strings in an array?
Yeah I'm kinda doing that myself right now to see how hard it would be.
It's not, just had to add an
import json
so I can use
json.dumps
and
json.loads
and now I'm basically just bypassing half the work you did with saving things to game_list as text and instead just doing a
config.set('games', 'games_list', json.dumps(games))
in most places. And it works pretty well. I got it working in add_game, remove_game and sort_games.
Did take me a little while to find where you set the global games variable, but once I did that and changed it to
games = json.loads(config.get('games', 'games_list'))
it seems to work brilliantly so far.
the add_game needed a little extra steps like having to get the list from the config first into a temporary variable, then appending the new name and then setting it to the config again. But that is a small price to pay.
If you want I can send you my hacked together version (which also has the "double Opera check" for both Opera and OperaGX)
Just let me know.