mirror of
https://github.com/fergalmoran/picard.git
synced 2025-12-29 12:47:52 +00:00
Clean up default text assignments
This commit is contained in:
@@ -205,10 +205,9 @@ class CAATypesSelectorDialog(PicardDialog):
|
|||||||
|
|
||||||
# Add instructions to the dialog box
|
# Add instructions to the dialog box
|
||||||
instructions = QtWidgets.QLabel()
|
instructions = QtWidgets.QLabel()
|
||||||
if instructions_top:
|
if instructions_top is None:
|
||||||
|
instructions_top = N_("Please select the contents of the image type 'Include' and 'Exclude' lists.")
|
||||||
instructions.setText(_(instructions_top))
|
instructions.setText(_(instructions_top))
|
||||||
else:
|
|
||||||
instructions.setText(_("Please select the contents of the image type 'Include' and 'Exclude' lists."))
|
|
||||||
instructions.setWordWrap(True)
|
instructions.setWordWrap(True)
|
||||||
instructions.setSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
instructions.setSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
self.layout.addWidget(instructions)
|
self.layout.addWidget(instructions)
|
||||||
@@ -251,16 +250,15 @@ class CAATypesSelectorDialog(PicardDialog):
|
|||||||
|
|
||||||
# Add usage explanation to the dialog box
|
# Add usage explanation to the dialog box
|
||||||
instructions = QtWidgets.QLabel()
|
instructions = QtWidgets.QLabel()
|
||||||
if instructions_bottom:
|
if instructions_bottom is None:
|
||||||
instructions.setText(_(instructions_bottom))
|
instructions_bottom = N_(
|
||||||
else:
|
|
||||||
instructions.setText(_(
|
|
||||||
"CAA images with an image type found in the 'Include' list will be downloaded and used "
|
"CAA images with an image type found in the 'Include' list will be downloaded and used "
|
||||||
"UNLESS they also have an image type found in the 'Exclude' list. Images with types "
|
"UNLESS they also have an image type found in the 'Exclude' list. Images with types "
|
||||||
"found in the 'Exclude' list will NEVER be used. Image types not appearing in the 'Include' "
|
"found in the 'Exclude' list will NEVER be used. Image types not appearing in the 'Include' "
|
||||||
"or 'Exclude' lists will not be considered when determining whether or not to download and "
|
"or 'Exclude' lists will not be considered when determining whether or not to download and "
|
||||||
"use a CAA image.\n")
|
"use a CAA image.\n"
|
||||||
)
|
)
|
||||||
|
instructions.setText(_(instructions_bottom))
|
||||||
instructions.setWordWrap(True)
|
instructions.setWordWrap(True)
|
||||||
instructions.setSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
instructions.setSizePolicy(QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Expanding)
|
||||||
self.layout.addWidget(instructions)
|
self.layout.addWidget(instructions)
|
||||||
|
|||||||
Reference in New Issue
Block a user