提交 6a9913af 编写于 作者: A Akshar Patel 提交者: Kentaro Wada

feat: allow saving file without any labels

上级 0c0ab87d
......@@ -1519,7 +1519,6 @@ class MainWindow(QtWidgets.QMainWindow):
def saveFile(self, _value=False):
assert not self.image.isNull(), "cannot save empty image"
if self._config['flags'] or self.hasLabels():
if self.labelFile:
# DL20180323 - overwrite when in directory
self._saveFile(self.labelFile.filename)
......@@ -1531,7 +1530,6 @@ class MainWindow(QtWidgets.QMainWindow):
def saveFileAs(self, _value=False):
assert not self.image.isNull(), "cannot save empty image"
if self.hasLabels():
self._saveFile(self.saveFileDialog())
def saveFileDialog(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册