forked from openlp/openlp
- pep8 (one ident)
This commit is contained in:
parent
036907eb5e
commit
869caa9bf5
@ -208,8 +208,8 @@ class OpenLP(OpenLPMixin, QtWidgets.QApplication):
|
|||||||
# If data_version is different from the current version ask if we should backup the data folder
|
# If data_version is different from the current version ask if we should backup the data folder
|
||||||
elif data_version != openlp_version:
|
elif data_version != openlp_version:
|
||||||
if QtWidgets.QMessageBox.question(None, translate('OpenLP', 'Backup'),
|
if QtWidgets.QMessageBox.question(None, translate('OpenLP', 'Backup'),
|
||||||
translate('OpenLP', 'OpenLP has been upgraded, do you want to\ncreate '
|
translate('OpenLP', 'OpenLP has been upgraded, do you want to create '
|
||||||
'a backup of the old data folder?'),
|
'a backup of OpenLPs data folder?'),
|
||||||
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
|
QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No,
|
||||||
QtWidgets.QMessageBox.Yes) == QtWidgets.QMessageBox.Yes:
|
QtWidgets.QMessageBox.Yes) == QtWidgets.QMessageBox.Yes:
|
||||||
# Create copy of data folder
|
# Create copy of data folder
|
||||||
@ -223,7 +223,7 @@ class OpenLP(OpenLPMixin, QtWidgets.QApplication):
|
|||||||
translate('OpenLP', 'Backup of the data folder failed!'))
|
translate('OpenLP', 'Backup of the data folder failed!'))
|
||||||
return
|
return
|
||||||
message = translate('OpenLP',
|
message = translate('OpenLP',
|
||||||
'A backup of the data folder has been created in:\n\n'
|
'A backup of the data folder has been created at:/n'
|
||||||
'{text}').format(text=data_folder_backup_path)
|
'{text}').format(text=data_folder_backup_path)
|
||||||
QtWidgets.QMessageBox.information(None, translate('OpenLP', 'Backup'), message)
|
QtWidgets.QMessageBox.information(None, translate('OpenLP', 'Backup'), message)
|
||||||
|
|
||||||
|
@ -328,6 +328,7 @@ def create_separated_list(string_list):
|
|||||||
return_list = ""
|
return_list = ""
|
||||||
return return_list
|
return return_list
|
||||||
|
|
||||||
|
|
||||||
from .exceptions import ValidationError
|
from .exceptions import ValidationError
|
||||||
from .filedialog import FileDialog
|
from .filedialog import FileDialog
|
||||||
from .screen import ScreenList
|
from .screen import ScreenList
|
||||||
|
Loading…
Reference in New Issue
Block a user