Commit Graph

30 Commits

Author SHA1 Message Date
kramo
36b6bc17bd Cleanups 2023-05-24 15:36:25 +02:00
GeoffreyCoulaud
e5d2657bb9 🚑 More rebase conflicts resolved 2023-05-24 15:35:18 +02:00
GeoffreyCoulaud
f246a73b19 ♻️ Changed shared imports to absolute 2023-05-24 15:35:18 +02:00
kramo
203393dea0 Move shared values to shared 2023-05-21 17:28:29 +02:00
kramo
1b5080b0c6 Cleanup import warning logic 2023-05-21 10:36:16 +02:00
kramo
48685d2591 Automatically add extra Steam libraries 2023-05-20 18:45:18 +02:00
kramo
caaeade600 Fix SGDB warning dialog logic 2023-05-20 10:53:45 +02:00
kramo
235c8ab531 Use toasts for informing the user about imports 2023-05-18 15:36:04 +02:00
kramo
1e3df843ba Move DetailsWindow to its own class 2023-04-20 01:53:22 +02:00
kramo
7a5450d7d8 Potentially fix bad fd error 2023-04-19 22:46:57 +02:00
kramo
3cfb3c5028 Update SGDBSave to use Game class 2023-04-19 22:05:14 +02:00
kramo
96a16c1adb Cleanups 2023-04-18 21:11:38 +02:00
kramo
bc9192e83b Cleanups 2023-04-18 19:07:49 +02:00
kramo
838460ce2a Resize images consistently 2023-04-17 14:21:37 +02:00
kramo
6edd85e80a Cleanups 2023-04-14 14:44:44 +02:00
kramo
3107bda8e0 Fix ZeroDivisionError - fixes #67 2023-04-09 16:26:55 +02:00
kramo
cbe9bfbab8 SteamGridDB for manually added games 2023-04-04 19:12:36 +02:00
kramo
45be2eb165 Basic SteamGridDB support 2023-04-04 17:35:36 +02:00
kramo
f18894bf10 Add itch import 2023-04-03 18:17:53 +02:00
kramo
f3db0647ae Add hint if multiple Steam libraries are detected 2023-04-02 17:04:43 +02:00
kramo
3bcbf8457c Refactor to use pathlib 2023-04-01 11:33:48 +02:00
kramo
3e568be6d8 Fix fstrings in translations 2023-03-31 15:44:59 +02:00
Bananaman
77b083e219 A few minor code cleanups and fixes (#47)
* Avoid exception if trying to delete missing "removed" key

`.pop(key)` throws an exception if that `key` is missing. Using a default value (in this case None) means we don't throw any errors when deleting a missing key. Which is what we want here, for safety. We just want to delete the key. We don't care if it's existing or not.

There are other places in the codebase that also use `.pop(key)`, but all of those first check the validity of the key before popping, so this was the only one that needed fixing.

* Improve performance by removing keys() calls

Every `.keys()` call create a new `[list...]` of all keys from the given dictionary. It's a total waste of performance, since we can already check if a key exists in a dictionary by just using `if "key" in the_dict`.

* Use more pythonic "not in" syntax

The syntax is supposed to be `if "thing" not in other_thing`. We already use this proper `not in` syntax everywhere else in the codebase. Just fixing this location.
2023-03-31 15:24:02 +02:00
kramo
61ef02cc7a Add option to remove all games 2023-03-30 16:22:58 +02:00
kramo
bf2a500d5e Fix import reporting incorrect number of games 2023-03-30 13:43:26 +02:00
kramo
f17663323d Update translation files 2023-03-29 08:17:47 +02:00
kramo
eca96d8a5a Update translation files 2023-03-29 08:15:56 +02:00
kramo
d4e6423bd5 Update translation files 2023-03-29 08:09:04 +02:00
kramo
c1abed8af6 UX improvements 2023-03-29 00:55:18 +02:00
kramo
643ca368a6 Unify games import 2023-03-29 00:23:23 +02:00