mirror of
https://github.com/nixietab/picodulce.git
synced 2025-04-10 10:28:56 +01:00
fixed again the same thing
This commit is contained in:
parent
7917dd0a7b
commit
ea252215f1
@ -331,10 +331,10 @@ class PicomcVersionSelector(QWidget):
|
|||||||
|
|
||||||
def run_game(self, selected_instance):
|
def run_game(self, selected_instance):
|
||||||
try:
|
try:
|
||||||
subprocess.run(['picomc', 'play', selected_instance], check=True)
|
|
||||||
# Update lastplayed field in config.json on a separate thread
|
# Update lastplayed field in config.json on a separate thread
|
||||||
update_thread = threading.Thread(target=self.update_last_played, args=(selected_instance,))
|
update_thread = threading.Thread(target=self.update_last_played, args=(selected_instance,))
|
||||||
update_thread.start()
|
update_thread.start()
|
||||||
|
subprocess.run(['picomc', 'play', selected_instance], check=True)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
error_message = f"Error playing {selected_instance}: {e}"
|
error_message = f"Error playing {selected_instance}: {e}"
|
||||||
logging.error(error_message)
|
logging.error(error_message)
|
||||||
|
Loading…
Reference in New Issue
Block a user