Skip to content

Commit

Permalink
removing selectable sims can cause UI Exception #20
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanNano committed Mar 20, 2020
1 parent b2ec463 commit f86b4a7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/control_any_sim/services/selection_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,9 @@ def make_sim_selectable(self, sim_info):
self.client.set_active_sim_by_id(currently_active_sim.id)

def remove_sim(self, sim_info):
self.client.set_next_sim()
if sim_info == self.client.active_sim_info:
self.client.set_next_sim()

self.client.remove_selectable_sim_by_id(sim_info.id)

def setup_zone(self):
Expand Down

0 comments on commit f86b4a7

Please sign in to comment.