warning popup when export format for geometry reach is not .st

This commit is contained in:
Dylan Jeannin committed 2026-04-28 14:30:40 +02:00
1 parent 51dd6d27c5
commit 6165719829
2 files changed
+13 -1

No files matched your search

+6
View File
@@ -91,3 +91,9 @@ class GeometryTranslate(MainTranslate):
self._dict["Shift"] = _translate( self._dict["Shift"] = _translate(
"Geometry", "Shift" "Geometry", "Shift"
) )
self._dict["warning"] = _translate(
"Geometry", "Warning"
)
self._dict["format_not_exportable"] = _translate(
"Geometry", "The format of the file is not exportable."
)
+7 -1
View File
@@ -691,7 +691,13 @@ class GeometryWindow(PamhyrWindow):
if suffix == ".st" or suffix == ".ST": if suffix == ".st" or suffix == ".ST":
self._export_to_file_st(filename[:-3]) self._export_to_file_st(filename[:-3])
else: else:
# TODO : prévenir l'utilisateur que le format n'est pas exportable # Warning popup when the format is not exportable
win = QtWidgets.QMessageBox()
win.setIcon(QtWidgets.QMessageBox.Warning)
win.setWindowTitle(self._trad["warning"])
win.setText(self._trad["format_not_exportable"])
win.exec()
pass pass
else: else:
self._export_to_file_st(filename) self._export_to_file_st(filename)