We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 335ef86 commit cfbc5a8Copy full SHA for cfbc5a8
1 file changed
openmc_plotter/main_window.py
@@ -1083,10 +1083,13 @@ def restoreModelSettings(self):
1083
if (current_mat_xml_hash != model.mat_xml_hash) or \
1084
(current_geom_xml_hash != model.geom_xml_hash):
1085
# hashes do not match so ignore plot_settings.pkl file
1086
- pkl_settings_warn = "WARNING: Model has changed since " +\
1087
- "storing plot settings. Ignoring " +\
1088
- "previous plot settings."
1089
- print(pkl_settings_warn)
+ msg_box = QMessageBox()
+ msg = "WARNING: Model has changed since storing plot " +\
+ "settings. Ignoring previous plot settings."
+ msg_box.setText(msg)
1090
+ msg_box.setIcon(QMessageBox.Warning)
1091
+ msg_box.setStandardButtons(QMessageBox.Ok)
1092
+ msg_box.exec_()
1093
return
1094
1095
# do not replace model if the version is out of date
0 commit comments