Skip to content

Commit

Permalink
deselect all first when loading selecgion
Browse files Browse the repository at this point in the history
  • Loading branch information
calebweinreb committed Apr 22, 2024
1 parent 939fec8 commit 00fa04c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snub/gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,7 @@ def load_selection(self):

if file_name:
try:
self.deselect_all()
intervals = np.loadtxt(file_name, delimiter=",", skiprows=1)
if len(intervals) > 0:
is_selected = np.ones(len(intervals)) > 0
Expand Down

0 comments on commit 00fa04c

Please sign in to comment.