8000 BUG: removed useless/confusing "discard" button in dialog · larray-project/larray-editor@784da81 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 784da81

Browse files
committed
BUG: removed useless/confusing "discard" button in dialog
1 parent 446496f commit 784da81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

larray_editor/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ def save_script(self):
10421042
if overwrite and os.path.isfile(filepath):
10431043
ret = QMessageBox.warning(self, "Warning",
10441044
f"File `{filepath}` exists. Are you sure to overwrite it?",
1045-
QMessageBox.Save | QMessageBox.Discard | QMessageBox.Cancel)
1045+
QMessageBox.Save | QMessageBox.Cancel)
10461046
if ret == QMessageBox.Save:
10471047
self._save_script(filepath, lines, overwrite)
10481048
else:

0 commit comments

Comments
 (0)
0