We're getting quite a few support tickets from people who think the Projector Manager is for setting up OpenLP's display. Hiding the projector manager by default should prevent this from happening as often as it currently is.

bzr-revno: 2668
This commit is contained in:
raoul@snyman.info 2017-01-24 21:01:58 -07:00 committed by Raoul Snyman
commit a0fb528ba7
2 changed files with 10 additions and 0 deletions

View File

@ -176,6 +176,7 @@ class Ui_MainWindow(object):
self.projector_manager_contents = ProjectorManager(self.projector_manager_dock)
self.projector_manager_contents.setObjectName('projector_manager_contents')
self.projector_manager_dock.setWidget(self.projector_manager_contents)
self.projector_manager_dock.setVisible(False)
main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.projector_manager_dock)
# Create the menu items
action_list = ActionList.get_instance()

View File

@ -156,6 +156,15 @@ class TestMainWindow(TestCase, TestMixin):
self.assertTrue('plugin_manager' in self.registry.service_list,
'The plugin_manager should have been registered.')
def test_projector_dock_hidden_by_default(self):
"""
Test that the projector dock is hidden by default
"""
# GIVEN: A main window
# WHEN: OpenLP starts
# THEN: The projector dock is hidden
self.main_window.projector_manager_dock.setVisible.assert_called_once_with(False)
def on_search_shortcut_triggered_shows_media_manager_test(self):
"""
Test that the media manager is made visible when the search shortcut is triggered