@@ -737,14 +737,13 @@ def download_game_cover(self, game_data, is_new_game=False, game_name=None):
737
737
safe_name = utils .make_safe_filename (game_data ["name" ])
738
738
expected_image_path = os .path .join (images_dir , f"{ safe_name } .jpg" )
739
739
740
- # Create worker in a way that properly maintains references
741
740
worker = IGDBImageDownloadWorker (self .config ["igdb_auth" ], game_data , images_dir )
742
741
743
- # Store worker reference to prevent garbage collection issues in Nuitka builds
742
+ # store worker reference to prevent garbage collection issues in nuitka builds
744
743
self .current_worker = worker
745
744
746
745
if is_new_game :
747
- # Use a stable lambda to prevent issues in compiled code
746
+ # use a stable lambda to prevent issues in builds
748
747
worker .signals .image_downloaded .connect (
749
748
lambda name , path , official_name : self .finalize_game_addition (path , official_name ))
750
749
else :
@@ -767,7 +766,7 @@ def download_game_cover(self, game_data, is_new_game=False, game_name=None):
767
766
QMessageBox .warning (self , "Error" , f"An unexpected error occurred: { str (e )} " )
768
767
769
768
def image_download_finished (self , is_new_game = False , expected_image_path = None ):
770
- """Handle cleanup after image download regardless of success or failure"""
769
+ """handle cleanup after image download regardless of success or failure"""
771
770
try :
772
771
if is_new_game and hasattr (self , "current_game_addition" ) and self .current_game_addition :
773
772
if not hasattr (self , "current_game_data" ) or not self .current_game_data :
0 commit comments