forked from openlp/openlp
Add 1.5 second delay for autoloading projectors
This commit is contained in:
parent
0264d57b61
commit
c7d36826aa
@ -313,6 +313,12 @@ class ProjectorManager(OpenLPMixin, RegistryMixin, QWidget, Ui_ProjectorManager,
|
|||||||
"""
|
"""
|
||||||
Post-initialize setups.
|
Post-initialize setups.
|
||||||
"""
|
"""
|
||||||
|
# Set 1.5 second delay before loading all projectors
|
||||||
|
if self.autostart:
|
||||||
|
log.debug('Delaying 1.5 seconds before loading all projectors')
|
||||||
|
QtCore.QTimer().singleShot(1500, self._load_projectors)
|
||||||
|
else:
|
||||||
|
log.debug('Loading all projectors')
|
||||||
self._load_projectors()
|
self._load_projectors()
|
||||||
self.projector_form = ProjectorEditForm(self, projectordb=self.projectordb)
|
self.projector_form = ProjectorEditForm(self, projectordb=self.projectordb)
|
||||||
self.projector_form.newProjector.connect(self.add_projector_from_wizard)
|
self.projector_form.newProjector.connect(self.add_projector_from_wizard)
|
||||||
|
Loading…
Reference in New Issue
Block a user