Skip to content

Commit

Permalink
Exit fullscreen before cloning frames
Browse files Browse the repository at this point in the history
  • Loading branch information
bordaigorl committed Apr 4, 2023
1 parent 23ef92f commit 4a81026
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/rmview/rmview.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ def movePen(self, x, y):

@pyqtSlot()
def cloneViewer(self):
self.viewer.showNormal()
img = self.viewer.image()
img.detach()
v = QtImageViewer()
Expand All @@ -461,6 +462,7 @@ def cloneViewer(self):
v.show()
v.rotate(self.viewer._rotation)
self.cloned_frames.add(v)
v.setWindowTitle("Cloned frame %d" % len(self.cloned_frames))
v.destroyed.connect(lambda: self.cloned_frames.discard(v))

@pyqtSlot()
Expand Down

0 comments on commit 4a81026

Please sign in to comment.