Skip to content

Commit c46b7e0

Browse files
committed
Added fix in method toggle_rw where engine_path is previously hardcoded to Rvc64, I used name from selected_instance to ensure it finds the correct folder for the engine
1 parent 07db988 commit c46b7e0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,9 @@ def toggle_rw(self):
458458
self.reset_ui_after_toggle()
459459
return
460460

461-
engine_path = os.path.join(self.bluestacks_path, "Rvc64")
462461
for name in selected_instances:
463462
try:
463+
engine_path = os.path.join(self.bluestacks_path, name)
464464
instance_path = os.path.join(self.bluestacks_path, name)
465465
curr = self.instance_data[name]["rw_mode"]
466466
new_mode = "Normal" if curr == "Readonly" else "Readonly"
@@ -491,6 +491,9 @@ def toggle_rw(self):
491491

492492
self.reset_ui_after_toggle()
493493

494+
495+
496+
494497
def update_instance_statuses(self):
495498
"""Periodically updates the status of each instance in the UI."""
496499
if self.is_toggling:

0 commit comments

Comments
 (0)