Skip to content

Commit

Permalink
Avoid infinite recursion of events
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Oct 27, 2023
1 parent 7ee16c7 commit 9493923
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions koordinates/gui/explore_tab_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,9 @@ def set_mode(self, mode: str):
"""
Sets the current explore mode
"""
if self.current_mode() == mode:
return

for i in range(self.count()):
if self.tabData(i) == mode:
self.setCurrentIndex(i)
Expand Down

0 comments on commit 9493923

Please sign in to comment.