From 02b4d27b96f27b1fd24e41ad2dba6449a3b0e076 Mon Sep 17 00:00:00 2001 From: suutari-olli Date: Thu, 14 Jul 2016 21:13:58 +0300 Subject: [PATCH] pep8 fixes, test still broken. --- openlp/core/ui/mainwindow.py | 1 - openlp/core/ui/slidecontroller.py | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index d4bc6b741..ccd12727c 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -662,7 +662,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties): plugin.app_startup() self.application.process_events() - def first_time(self): """ Import themes if first time diff --git a/openlp/core/ui/slidecontroller.py b/openlp/core/ui/slidecontroller.py index b29543319..851bf01fc 100644 --- a/openlp/core/ui/slidecontroller.py +++ b/openlp/core/ui/slidecontroller.py @@ -982,7 +982,7 @@ class SlideController(DisplayController, RegistryProperties): If we are re-processing service item, don't unblank the display (Found in def replace_service_manager_item) """ - if not Registry().get_flag('replace service manager item') == True: + if not Registry().get_flag('replace service manager item') is True: self.on_blank_display(False) def on_blank_display(self, checked=None): @@ -1398,7 +1398,7 @@ class SlideController(DisplayController, RegistryProperties): # Prevent same item in preview from being sent to Service multiple times. # Changing the preview slide resets this flag to False. # Do note that this still allows to add item to Service multiple times if icon is clicked. - elif not Registry().get_flag('has doubleclick added item to service') == True: + elif not Registry().get_flag('has doubleclick added item to service') is True: self.on_preview_add_to_service() Registry().set_flag('has doubleclick added item to service', True)