mirror of
https://github.com/iperov/DeepFaceLab.git
synced 2025-07-06 13:02:15 -07:00
XSegEditor: fix bugs
This commit is contained in:
parent
6687213fa5
commit
d1a5639e90
2 changed files with 5 additions and 3 deletions
|
@ -1182,7 +1182,9 @@ class MainWindow(QXMainWindow):
|
|||
break
|
||||
if len(self.image_paths) == 0:
|
||||
break
|
||||
if self.canvas_initialize(self.image_paths[0], only_has_polys):
|
||||
|
||||
|
||||
if self.canvas_initialize(self.image_paths[0], len(self.image_paths_done) != 0 and only_has_polys):
|
||||
break
|
||||
|
||||
self.update_cached_images()
|
||||
|
|
|
@ -66,7 +66,7 @@ class QXIconButton(QPushButton):
|
|||
self.repeat_timer.setInterval(self.repeat_delay)
|
||||
|
||||
def on_keyPressEvent(self, ev):
|
||||
key = ev.key()
|
||||
key = ev.nativeVirtualKey()
|
||||
if ev.isAutoRepeat():
|
||||
return
|
||||
|
||||
|
@ -75,7 +75,7 @@ class QXIconButton(QPushButton):
|
|||
self.action(is_pressed=True)
|
||||
|
||||
def on_keyReleaseEvent(self, ev):
|
||||
key = ev.key()
|
||||
key = ev.nativeVirtualKey()
|
||||
if ev.isAutoRepeat():
|
||||
return
|
||||
if self.seq is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue