forked from openlp/openlp
Hide the Projectors manager by default so that it doesn't confuse people
This commit is contained in:
parent
df668fde84
commit
32328cfe6a
@ -176,6 +176,7 @@ class Ui_MainWindow(object):
|
|||||||
self.projector_manager_contents = ProjectorManager(self.projector_manager_dock)
|
self.projector_manager_contents = ProjectorManager(self.projector_manager_dock)
|
||||||
self.projector_manager_contents.setObjectName('projector_manager_contents')
|
self.projector_manager_contents.setObjectName('projector_manager_contents')
|
||||||
self.projector_manager_dock.setWidget(self.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)
|
main_window.addDockWidget(QtCore.Qt.RightDockWidgetArea, self.projector_manager_dock)
|
||||||
# Create the menu items
|
# Create the menu items
|
||||||
action_list = ActionList.get_instance()
|
action_list = ActionList.get_instance()
|
||||||
|
@ -158,6 +158,15 @@ class TestMainWindow(TestCase, TestMixin):
|
|||||||
self.assertTrue('plugin_manager' in self.registry.service_list,
|
self.assertTrue('plugin_manager' in self.registry.service_list,
|
||||||
'The plugin_manager should have been registered.')
|
'The plugin_manager should have been registered.')
|
||||||
|
|
||||||
|
def test_projector_manager_hidden_on_startup(self):
|
||||||
|
"""
|
||||||
|
Test that the projector manager is hidden on startup
|
||||||
|
"""
|
||||||
|
# GIVEN: A built main window
|
||||||
|
# WHEN: OpenLP is started
|
||||||
|
# THEN: The projector manager should be hidden
|
||||||
|
self.main_window.projector_manager_dock.setVisible.assert_called_once_with(False)
|
||||||
|
|
||||||
def test_on_search_shortcut_triggered_shows_media_manager(self):
|
def test_on_search_shortcut_triggered_shows_media_manager(self):
|
||||||
"""
|
"""
|
||||||
Test that the media manager is made visible when the search shortcut is triggered
|
Test that the media manager is made visible when the search shortcut is triggered
|
||||||
|
Loading…
Reference in New Issue
Block a user