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

+7 -1
View File
@@ -691,7 +691,13 @@ class GeometryWindow(PamhyrWindow):
if suffix == ".st" or suffix == ".ST":
self._export_to_file_st(filename[:-3])
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
else:
self._export_to_file_st(filename)