diff --git a/src/vorta/assets/UI/scriptedit.ui b/src/vorta/assets/UI/scriptedit.ui
index 8da8a9908..bfc8edcbd 100644
--- a/src/vorta/assets/UI/scriptedit.ui
+++ b/src/vorta/assets/UI/scriptedit.ui
@@ -20,75 +20,71 @@
0
+ -
+
+
+ Qt::Vertical
+
+
+ QSizePolicy::Fixed
+
+
+
+ 20
+ 10
+
+
+
+
-
-
-
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
+
-
+
+
+ Pre/Post-Backup Script:
-
+
- -
+
-
Qt::Vertical
+
+ QSizePolicy::Fixed
+
20
- 40
+ 5
- -
-
-
- Custom Pre/Post backup script:
-
-
-
- -
-
-
- Save
-
-
-
- -
+
-
Monospace
-
-
- -
-
-
- Qt::Vertical
-
-
- QSizePolicy::Fixed
+
+ IBeamCursor
-
-
- 20
- 5
-
+
+ QTextEdit::NoWrap
-
+
+ -
+
+
+ QDialogButtonBox::Cancel|QDialogButtonBox::Save
+
+
+
diff --git a/src/vorta/views/script_edit_dialog.py b/src/vorta/views/script_edit_dialog.py
index adb38babe..3bbed7baf 100644
--- a/src/vorta/views/script_edit_dialog.py
+++ b/src/vorta/views/script_edit_dialog.py
@@ -1,4 +1,5 @@
from PyQt6 import QtCore, uic
+from PyQt6.QtWidgets import QDialogButtonBox
from vorta.utils import get_asset
@@ -15,11 +16,18 @@ def __init__(self, context: str, profile, parent=None) -> None:
self.context = context
if context == "pre":
self.setWindowTitle(self.tr("Edit Pre-Backup Script"))
+ self.label.setText(self.tr("Pre-Backup Script:"))
elif context == "post":
self.setWindowTitle(self.tr("Edit Post-Backup Script"))
+ self.label.setText(self.tr("Post-Backup Script:"))
+
+ self.buttonBox.button(QDialogButtonBox.StandardButton.Save).setText(self.tr("Save"))
+ self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).setText(self.tr("Cancel"))
self.profile = profile
- self.saveScriptButton.clicked.connect(self.save_script)
+
+ self.buttonBox.button(QDialogButtonBox.StandardButton.Save).clicked.connect(self.save_script)
+ self.buttonBox.button(QDialogButtonBox.StandardButton.Cancel).clicked.connect(self.close)
# Populate data from profile
self.populate_from_profile()