Skip to content

Commit

Permalink
fix the bug of wrong active image
Browse files Browse the repository at this point in the history
  • Loading branch information
qixinbo committed Jul 30, 2020
1 parent 1d15f73 commit 319127b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sciapp/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def show_img(self, img, name):
if not isinstance(img, Image):
img = Image(img, name)
img.name = self.img_manager.name(name)
self.img_manager.add(name, img)
self.img_manager.add(img.name, img)
print(img.info)

def close_img(self, name):
Expand Down

0 comments on commit 319127b

Please sign in to comment.