Fix a problem in the settings which prevented the plugins from showing up in the library

This commit is contained in:
Raoul Snyman 2018-03-07 21:57:43 -07:00
parent a0d6f2d94a
commit df140019cf
2 changed files with 3 additions and 1 deletions

View File

@ -586,6 +586,8 @@ class Settings(QtCore.QSettings):
# Sometimes setting is string instead of a boolean.
return setting == 'true'
if isinstance(default_value, int):
if setting is None:
return 0
return int(setting)
return setting

View File

@ -1075,7 +1075,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert
# Close down the display
if self.live_controller.display:
self.live_controller.display.close()
self.live_controller.display = None
# self.live_controller.display = None
# Clean temporary files used by services
self.service_manager_contents.clean_up()
if is_win():