forked from openlp/openlp
Updates to web to allow Android to poll
bzr-revno: 1944
This commit is contained in:
commit
44a7c32baf
@ -105,6 +105,7 @@ class ServiceManager(QtGui.QWidget):
|
||||
self.suffixes = []
|
||||
self.dropPosition = 0
|
||||
self.expandTabs = False
|
||||
self.serviceId = 0
|
||||
# is a new service and has not been saved
|
||||
self._modified = False
|
||||
self._fileName = u''
|
||||
@ -331,6 +332,8 @@ class ServiceManager(QtGui.QWidget):
|
||||
Setter for property "modified". Sets whether or not the current service
|
||||
has been modified.
|
||||
"""
|
||||
if modified:
|
||||
self.serviceId += 1
|
||||
self._modified = modified
|
||||
serviceFile = self.shortFileName() or translate(
|
||||
'OpenLP.ServiceManager', 'Untitled Service')
|
||||
@ -439,6 +442,7 @@ class ServiceManager(QtGui.QWidget):
|
||||
self.serviceManagerList.clear()
|
||||
self.serviceItems = []
|
||||
self.setFileName(u'')
|
||||
self.serviceId += 1
|
||||
self.setModified(False)
|
||||
QtCore.QSettings(). \
|
||||
setValue(u'servicemanager/last file',QtCore.QVariant(u''))
|
||||
|
@ -396,6 +396,7 @@ class HttpConnection(object):
|
||||
Poll OpenLP to determine the current slide number and item name.
|
||||
"""
|
||||
result = {
|
||||
u'service': self.parent.plugin.serviceManager.serviceId,
|
||||
u'slide': self.parent.current_slide or 0,
|
||||
u'item': self.parent.current_item._uuid \
|
||||
if self.parent.current_item else u'',
|
||||
|
Loading…
Reference in New Issue
Block a user