forked from openlp/openlp
Head982
This commit is contained in:
commit
047e8efe1f
@ -38,6 +38,7 @@ class GeneralTab(SettingsTab):
|
|||||||
"""
|
"""
|
||||||
self.screens = screens
|
self.screens = screens
|
||||||
self.monitorNumber = 0
|
self.monitorNumber = 0
|
||||||
|
self.overrideChanged = False
|
||||||
SettingsTab.__init__(self, u'General')
|
SettingsTab.__init__(self, u'General')
|
||||||
|
|
||||||
def preLoad(self):
|
def preLoad(self):
|
||||||
@ -473,6 +474,7 @@ class GeneralTab(SettingsTab):
|
|||||||
Receiver.send_message(u'slidecontroller_live_spin_delay',
|
Receiver.send_message(u'slidecontroller_live_spin_delay',
|
||||||
self.timeoutSpinBox.value())
|
self.timeoutSpinBox.value())
|
||||||
# Reset screens after initial definition
|
# Reset screens after initial definition
|
||||||
|
if self.overrideChanged:
|
||||||
self.screens.override[u'size'] = QtCore.QRect(
|
self.screens.override[u'size'] = QtCore.QRect(
|
||||||
int(self.customXValueEdit.text()),
|
int(self.customXValueEdit.text()),
|
||||||
int(self.customYValueEdit.text()),
|
int(self.customYValueEdit.text()),
|
||||||
@ -483,6 +485,7 @@ class GeneralTab(SettingsTab):
|
|||||||
Receiver.send_message(u'config_screen_changed')
|
Receiver.send_message(u'config_screen_changed')
|
||||||
else:
|
else:
|
||||||
self.screens.reset_current_display()
|
self.screens.reset_current_display()
|
||||||
|
Receiver.send_message(u'config_screen_changed')
|
||||||
|
|
||||||
def onOverrideCheckBoxToggled(self, checked):
|
def onOverrideCheckBoxToggled(self, checked):
|
||||||
"""
|
"""
|
||||||
|
@ -89,8 +89,7 @@ class AlertsPlugin(Plugin):
|
|||||||
|
|
||||||
def toggleAlertsState(self):
|
def toggleAlertsState(self):
|
||||||
self.alertsActive = not self.alertsActive
|
self.alertsActive = not self.alertsActive
|
||||||
QtCore.QSettings().setValue(
|
QtCore.QSettings().setValue(self.settingsSection + u'/active',
|
||||||
self.settingsSection + u'/active',
|
|
||||||
QtCore.QVariant(self.alertsActive))
|
QtCore.QVariant(self.alertsActive))
|
||||||
|
|
||||||
def onAlertsTrigger(self):
|
def onAlertsTrigger(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user