Half assed python type hints won't let me do trivial stuff like renaming a property, what a bunch of useless crap.

This commit is contained in:
Mathieu Comandon 2024-02-17 21:17:22 -08:00
parent 64d1f4436d
commit 7c53af2ff0

View file

@ -427,7 +427,7 @@ class GameRemovalRow(Gtk.ListBoxRow):
self.folder_size_spinner.hide()
@property
def delete_files_property(self) -> bool:
def delete_files(self) -> bool:
"""True if the game files should be deleted."""
return bool(
self.game.is_installed
@ -436,8 +436,8 @@ class GameRemovalRow(Gtk.ListBoxRow):
and self.delete_files_checkbox.get_active()
)
@delete_files_property.setter
def delete_files_property(self, active: bool) -> None:
@delete_files.setter
def delete_files(self, active: bool) -> None:
self.delete_files_checkbox.set_active(active)
@property