From ea252215f1085beae6f765cd5db92cb90034fc04 Mon Sep 17 00:00:00 2001 From: Nix <75538775+nixietab@users.noreply.github.com> Date: Sun, 25 Aug 2024 00:50:15 -0300 Subject: [PATCH] fixed again the same thing --- picodulce.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/picodulce.py b/picodulce.py index fe28ad2..8f558ce 100644 --- a/picodulce.py +++ b/picodulce.py @@ -331,10 +331,10 @@ class PicomcVersionSelector(QWidget): def run_game(self, selected_instance): try: - subprocess.run(['picomc', 'play', selected_instance], check=True) # Update lastplayed field in config.json on a separate thread update_thread = threading.Thread(target=self.update_last_played, args=(selected_instance,)) update_thread.start() + subprocess.run(['picomc', 'play', selected_instance], check=True) except subprocess.CalledProcessError as e: error_message = f"Error playing {selected_instance}: {e}" logging.error(error_message)