forked from openlp/openlp
pep
This commit is contained in:
parent
368b0ce75c
commit
7c68e9d022
@ -539,7 +539,7 @@ class ServiceItem(RegistryProperties):
|
||||
Confirms if the ServiceItem uses a file
|
||||
"""
|
||||
return self.service_item_type == ServiceItemType.Image or \
|
||||
(self.service_item_type == ServiceItemType.Command and not self.is_capable(ItemCapabilities.IsOptical))
|
||||
(self.service_item_type == ServiceItemType.Command and not self.is_capable(ItemCapabilities.IsOptical))
|
||||
|
||||
def is_text(self):
|
||||
"""
|
||||
|
@ -599,7 +599,8 @@ class ServiceManager(QtWidgets.QWidget, RegistryBase, Ui_ServiceManager, LogMixi
|
||||
self.log_exception('Failed to save service to disk: {name}'.format(name=temp_file.name))
|
||||
self.main_window.error_message(
|
||||
translate('OpenLP.ServiceManager', 'Error Saving File'),
|
||||
translate('OpenLP.ServiceManager', 'There was an error saving your file.\n\n{error}').format(error=error))
|
||||
translate('OpenLP.ServiceManager',
|
||||
'There was an error saving your file.\n\n{error}').format(error=error))
|
||||
return self.save_file_as()
|
||||
self.main_window.finished_progress_bar()
|
||||
self.application.set_normal_cursor()
|
||||
|
Loading…
Reference in New Issue
Block a user