Turned the new setting into question.

This commit is contained in:
suutari-olli 2016-04-17 04:52:45 +03:00
parent 5dbb69430f
commit bf3cad050c
3 changed files with 4 additions and 4 deletions

View File

@ -162,7 +162,7 @@ class Settings(QtCore.QSettings):
'core/display on monitor': True,
'core/override position': False,
'core/application version': '0.0',
'core/doubleclicking preview has added to service': False,
'core/has doubleclicking preview added item to service': False,
'images/background color': '#000000',
'media/players': 'system,webkit',
'media/override player': QtCore.Qt.Unchecked,

View File

@ -483,7 +483,7 @@ class MediaManagerItem(QtWidgets.QWidget, RegistryProperties):
log.debug('%s Preview requested' % self.plugin.name)
# If ('advanced/double click live') is not enabled, double clicking preview adds the item to Service.
# This setting prevents it from being sent to Service multiple times, in here it is reset to False.
Settings().setValue('core/doubleclicking preview has added to service', False)
Settings().setValue('core/has doubleclicking preview added item to service', False)
service_item = self.build_service_item()
if service_item:
service_item.from_plugin = True

View File

@ -1376,9 +1376,9 @@ class SlideController(DisplayController, RegistryProperties):
# Prevent same item in preview from being sent to Service multiple times. Changing preview slide resets
# this setting. Sending to preview from Service does not reset this setting, this is a design choise.
# Do note that this still allows to add item to Service multiple times if icon is clicked.
elif not Settings().value('core/doubleclicking preview has added to service'):
elif not Settings().value('core/has doubleclicking preview added item to service'):
self.on_preview_add_to_service()
Settings().setValue('core/doubleclicking preview has added to service', True)
Settings().setValue('core/has doubleclicking preview added item to service', True)
def on_go_live(self, field=None):
"""