Fix issue #287 and a typo
This commit is contained in:
parent
5f9f17f9b4
commit
4f84f68b96
@ -1190,7 +1190,10 @@ class MainWindow(QMainWindow, WindowMixin):
|
|||||||
# If the labelling file does not exist yet, create if and
|
# If the labelling file does not exist yet, create if and
|
||||||
# re-save it with the verified attribute.
|
# re-save it with the verified attribute.
|
||||||
self.saveFile()
|
self.saveFile()
|
||||||
self.labelFile.toggleVerify()
|
if self.labelFile != None:
|
||||||
|
self.labelFile.toggleVerify()
|
||||||
|
else:
|
||||||
|
return
|
||||||
|
|
||||||
self.canvas.verified = self.labelFile.verified
|
self.canvas.verified = self.labelFile.verified
|
||||||
self.paintCanvas()
|
self.paintCanvas()
|
||||||
|
|||||||
2
libs/constants.py
Normal file → Executable file
2
libs/constants.py
Normal file → Executable file
@ -12,5 +12,5 @@ SETTING_PAINT_LABEL = 'paintlabel'
|
|||||||
SETTING_LAST_OPEN_DIR = 'lastOpenDir'
|
SETTING_LAST_OPEN_DIR = 'lastOpenDir'
|
||||||
SETTING_AUTO_SAVE = 'autosave'
|
SETTING_AUTO_SAVE = 'autosave'
|
||||||
SETTING_SINGLE_CLASS = 'singleclass'
|
SETTING_SINGLE_CLASS = 'singleclass'
|
||||||
FORMAT_PASCALVOC='PscalVOC'
|
FORMAT_PASCALVOC='PascalVOC'
|
||||||
FORMAT_YOLO='YOLO'
|
FORMAT_YOLO='YOLO'
|
||||||
Loading…
x
Reference in New Issue
Block a user