Commit Graph

116 Commits

Author SHA1 Message Date
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
GeoffreyCoulaud
83d7aad0d1 Made more linter-friendly 2023-05-24 15:35:17 +02:00
GeoffreyCoulaud
a176b33241 🎨 Using absolute imports 2023-05-24 15:35:17 +02:00
kramo
203393dea0 Move shared values to shared 2023-05-21 17:28:29 +02:00
Geoffrey Coulaud
ab21e8b38b Moved schemas to shared module (#94) 2023-05-21 16:34:22 +02:00
kramo
d6cda0c562 Fix typo 2023-05-21 13:07:00 +02:00
kramo
1db5a15c33 Replace subtitles with paths in settings 2023-05-21 12:46:49 +02:00
kramo
2dc36287ee Set schema instead of switch in preferences 2023-05-21 10:25:55 +02:00
kramo
48685d2591 Automatically add extra Steam libraries 2023-05-20 18:45:18 +02:00
kramo
d060c4feca Make the SGDB row insensitive if no API key 2023-05-20 09:10:13 +02:00
kramo
28a304e364 Fix syntax 2023-05-18 15:44:10 +02:00
kramo
4ff236ed44 Fix bug 2023-05-18 15:42:06 +02:00
kramo
25a340015c Remove nested if statement 2023-05-15 18:22:22 +02:00
kramo
3127f4a898 Handle the user flipping a switch back 2023-05-15 18:17:49 +02:00
kramo
6db43213f0 Auto-import only if changes would have effect 2023-05-15 16:20:05 +02:00
kramo
53f273d434 Automatically import if changing import settings 2023-05-15 14:25:19 +02:00
kramo
d701d0827a Cleanups 2023-05-08 09:35:01 +02:00
kramo
00fa770943 Cleanups 2023-05-07 17:59:23 +02:00
kramo
3cfb3c5028 Update SGDBSave to use Game class 2023-04-19 22:05:14 +02:00
kramo
259891fdc5 Cleanups 2023-04-19 21:14:00 +02:00
kramo
9e7dc12a99 Cleanups 2023-04-19 19:50:11 +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
f8bb111939 Cleanups 2023-04-18 02:31:44 +02:00
kramo
e3411b8e7e Fix move when deleting all games 2023-04-15 21:50:19 +02:00
kramo
6b2678c5f6 Use new functions in preferences 2023-04-14 16:10:40 +02:00
kramo
6edd85e80a Cleanups 2023-04-14 14:44:44 +02:00
kramo
fd66d07ac3 Cleanups 2023-04-11 23:31:16 +02:00
kramo
a08ed1d4c2 Cleanups 2023-04-11 20:57:11 +02:00
kramo
984249c05b Remove animated covers properly 2023-04-11 19:03:16 +02:00
kramo
0da5f94ea3 SteamGridDB animated covers 2023-04-11 15:42:07 +02:00
kramo
5b08cea6de Delete animated covers properly 2023-04-11 15:00:18 +02:00
kramo
0f6a989142 Reimplement animated covers with Pillow 2023-04-11 14:49:18 +02:00
kramo
c1715aa328 Reimplement pixbuf caching 2023-04-10 20:54:24 +02:00
kramo
4a1f9d3f86 Fix capitalization 2023-04-05 10:55:08 +02:00
kramo
725e4027f2 Add option to import Steam games from Lutris 2023-04-05 10:13:22 +02:00
kramo
ee0c07befc SteamGridDB cleanups 2023-04-05 00:08:30 +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
7e968a9ac7 Pathlib fixes 2023-04-02 08:06:09 +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
780fd0a09f Added Lutris import 2023-03-31 15:22:45 +02:00
kramo
61ef02cc7a Add option to remove all games 2023-03-30 16:22:58 +02:00
kramo
dad4905753 Cleanups 2023-03-29 23:02:10 +02:00
kramo
4d99f80ff7 Create ImportPreferences class for future use 2023-03-29 19:27:06 +02:00
kramo
0a943d4259 Add warnings for non-existent launcher directories 2023-03-29 16:20:08 +02:00
kramo
17a6a53fd2 Use Adw.ExpanderRows for import sources 2023-03-29 07:59:02 +02:00