diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index a59f94377..0e464f287 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -1324,8 +1324,8 @@ class ServiceManager(OpenLPMixin, RegistryMixin, QtWidgets.QWidget, Ui_ServiceMa The theme may have changed in the settings dialog so make sure the theme combo box is in the correct state. """ visible = not self.renderer.theme_level == ThemeLevel.Global - self.theme_label.setVisible(visible) - self.theme_combo_box.setVisible(visible) + self.toolbar.actions['theme_combo_box'].setVisible(visible) + self.toolbar.actions['theme_label'].setVisible(visible) def regenerate_service_items(self, changed=False): """ diff --git a/openlp/plugins/remotes/lib/httprouter.py b/openlp/plugins/remotes/lib/httprouter.py index d5e8cda1c..5d14a5637 100644 --- a/openlp/plugins/remotes/lib/httprouter.py +++ b/openlp/plugins/remotes/lib/httprouter.py @@ -221,9 +221,13 @@ class HttpRouter(RegistryProperties): self.request_data = None url_path_split = urlparse(url_path) url_query = parse_qs(url_path_split.query) - # GET - if 'data' in url_query.keys(): - self.request_data = url_query['data'][0] + # Get data from HTTP request + if self.command == 'GET': + if 'data' in url_query.keys(): + self.request_data = url_query['data'][0] + elif self.command == 'POST': + content_len = int(self.headers['content-length']) + self.request_data = self.rfile.read(content_len).decode("utf-8") for route, func in self.routes: match = re.match(route, url_path_split.path) if match: @@ -401,10 +405,8 @@ class HttpRouter(RegistryProperties): log.debug('serve file request %s' % file_name) if not file_name: file_name = 'index.html' - elif file_name == 'stage': - file_name = 'stage.html' - elif file_name == 'main': - file_name = 'main.html' + if '.' not in file_name: + file_name += '.html' if file_name.startswith('/'): file_name = file_name[1:] path = os.path.normpath(os.path.join(self.html_dir, file_name)) diff --git a/openlp/plugins/remotes/lib/httpserver.py b/openlp/plugins/remotes/lib/httpserver.py index 26f00c359..88d1097dc 100644 --- a/openlp/plugins/remotes/lib/httpserver.py +++ b/openlp/plugins/remotes/lib/httpserver.py @@ -167,7 +167,6 @@ class HTTPSServer(HTTPServer): local_data = AppLocation.get_directory(AppLocation.DataDir) self.socket = ssl.SSLSocket( sock=socket.socket(self.address_family, self.socket_type), - ssl_version=ssl.PROTOCOL_TLSv1_2, certfile=os.path.join(local_data, 'remotes', 'openlp.crt'), keyfile=os.path.join(local_data, 'remotes', 'openlp.key'), server_side=True) diff --git a/scripts/check_dependencies.py b/scripts/check_dependencies.py index e6f7d2c37..fb0d024ae 100755 --- a/scripts/check_dependencies.py +++ b/scripts/check_dependencies.py @@ -93,6 +93,7 @@ MODULES = [ 'bs4', 'mako', 'uno', + 'six' ]