Skip to content

Commit

Permalink
_backup_error() -> _dialog_backup_error()
Browse files Browse the repository at this point in the history
  • Loading branch information
zas committed Apr 23, 2024
1 parent c1e7e86 commit 032c192
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions picard/ui/options/maintenance.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _make_backup_filename(self, auto=False):
_ext,
)

def _backup_error(self, dialog_title=None):
def _dialog_backup_error(self, dialog_title=None):
if not dialog_title:
dialog_title = _("Backup Configuration File")
dialog = QtWidgets.QMessageBox(
Expand Down Expand Up @@ -246,7 +246,7 @@ def save_backup(self):
)
dialog.exec()
else:
self._backup_error(dialog_title)
self._dialog_backup_error(dialog_title)

def load_backup(self):
dialog_title = _("Load Backup Configuration File")
Expand All @@ -266,7 +266,7 @@ def load_backup(self):
config = get_config()
filename = os.path.join(directory, self._make_backup_filename(auto=True))
if not config.save_user_backup(filename):
self._backup_error()
self._dialog_backup_error()
return

ext = os.path.splitext(filename)[1]
Expand Down

0 comments on commit 032c192

Please sign in to comment.