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
2023-03-22 07:57:43 +01:00
2023-03-30 23:38:38 +02:00
2023-03-31 15:22:45 +02:00
2022-12-26 14:38:37 +01:00
2023-03-24 22:03:39 +01:00
2023-03-21 16:31:56 +01:00
2023-03-22 17:32:06 +01:00
2023-03-31 15:22:45 +02:00
2022-12-26 14:35:00 +01:00
2023-03-30 23:38:38 +02:00
2023-03-29 08:18:34 -04:00

Cartridges

A GTK4 + Libadwaita game launcher

Flathub Build status Translation Status License Code style Discord Chatroom

The Project

Cartridges is a simple game launcher written in Python using GTK4 and Libadwaita.

Features

  • Manually adding and editing games
  • Importing games from Steam, Heroic and Bottles
  • Support for multiple Steam install locations
  • Hiding games
  • Searching and sorting by title, date added and last played

For updates and questions, join our Discord server!

Installation

Linux

Download on Flathub

From Releases

  1. Download the latest release from Releases.
  2. Install the downloaded file via GNOME Software or flatpak install hu.kramo.Cartridges.flatpak.

Windows

From Releases

  1. Download the latest release from Releases.
  2. Run the downloaded installer.

Note: Windows might present you with a warning when trying to install the app. This is expected, just ignore the warning.

Building manually

See Building.

Contributing

See CONTRIBUTING.

Thanks to Weblate for hosting our translations!

Description
emubox fork
Readme GPL-3.0 19 MiB
Languages
Python 96.8%
Meson 2.9%
CSS 0.3%