forked from openlp/openlp
Hide the Data Location group box on the Advanced tab if OpenLP is running portable.
bzr-revno: 2034
This commit is contained in:
commit
c5e23da78b
|
@ -545,6 +545,10 @@ class AdvancedTab(SettingsTab):
|
||||||
self.currentDataPath))
|
self.currentDataPath))
|
||||||
self.defaultColorButton.setStyleSheet(
|
self.defaultColorButton.setStyleSheet(
|
||||||
u'background-color: %s' % self.defaultColor)
|
u'background-color: %s' % self.defaultColor)
|
||||||
|
# Don't allow data directory move if running portable.
|
||||||
|
if Settings().value(u'advanced/is portable',
|
||||||
|
QtCore.QVariant(False)).toBool():
|
||||||
|
self.dataDirectoryGroupBox.hide()
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue