pep8 fixes, test still broken.

This commit is contained in:
suutari-olli 2016-07-14 21:13:58 +03:00
parent 1c133398e2
commit 02b4d27b96
2 changed files with 2 additions and 3 deletions

View File

@ -662,7 +662,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, RegistryProperties):
plugin.app_startup() plugin.app_startup()
self.application.process_events() self.application.process_events()
def first_time(self): def first_time(self):
""" """
Import themes if first time Import themes if first time

View File

@ -982,7 +982,7 @@ class SlideController(DisplayController, RegistryProperties):
If we are re-processing service item, don't unblank the display If we are re-processing service item, don't unblank the display
(Found in def replace_service_manager_item) (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) self.on_blank_display(False)
def on_blank_display(self, checked=None): 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. # Prevent same item in preview from being sent to Service multiple times.
# Changing the preview slide resets this flag to False. # 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. # 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() self.on_preview_add_to_service()
Registry().set_flag('has doubleclick added item to service', True) Registry().set_flag('has doubleclick added item to service', True)