forked from openlp/openlp
fixes
This commit is contained in:
parent
159f3ea9a2
commit
4a7a7e9050
@ -457,7 +457,7 @@ class AdvancedTab(SettingsTab):
|
|||||||
# The max recent files value does not have an interface and so never
|
# The max recent files value does not have an interface and so never
|
||||||
# gets actually stored in the settings therefore the default value of
|
# gets actually stored in the settings therefore the default value of
|
||||||
# 20 will always be used.
|
# 20 will always be used.
|
||||||
self.recentSpinBox.setMaximum(Settings().value(u'max recent files', 20))
|
self.recentSpinBox.setMaximum(settings.value(u'max recent files', 20))
|
||||||
self.recentSpinBox.setValue(settings.value(u'recent file count', 4))
|
self.recentSpinBox.setValue(settings.value(u'recent file count', 4))
|
||||||
self.mediaPluginCheckBox.setChecked(
|
self.mediaPluginCheckBox.setChecked(
|
||||||
settings.value(u'save current plugin', False))
|
settings.value(u'save current plugin', False))
|
||||||
@ -533,8 +533,7 @@ class AdvancedTab(SettingsTab):
|
|||||||
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.
|
# Don't allow data directory move if running portable.
|
||||||
if Settings().value(u'advanced/is portable',
|
if settings.value(u'advanced/is portable', False):
|
||||||
QtCore.QVariant(False)).toBool():
|
|
||||||
self.dataDirectoryGroupBox.hide()
|
self.dataDirectoryGroupBox.hide()
|
||||||
|
|
||||||
def save(self):
|
def save(self):
|
||||||
|
@ -208,7 +208,7 @@ class Ui_MainWindow(object):
|
|||||||
category=UiStrings().File, triggers=mainWindow.close)
|
category=UiStrings().File, triggers=mainWindow.close)
|
||||||
# Give QT Extra Hint that this is the Exit Menu Item
|
# Give QT Extra Hint that this is the Exit Menu Item
|
||||||
self.fileExitItem.setMenuRole(QtGui.QAction.QuitRole)
|
self.fileExitItem.setMenuRole(QtGui.QAction.QuitRole)
|
||||||
aaction_list.add_category(UiStrings().Import,
|
action_list.add_category(UiStrings().Import,
|
||||||
CategoryOrder.standardMenu)
|
CategoryOrder.standardMenu)
|
||||||
self.importThemeItem = create_action(mainWindow,
|
self.importThemeItem = create_action(mainWindow,
|
||||||
u'importThemeItem', category=UiStrings().Import)
|
u'importThemeItem', category=UiStrings().Import)
|
||||||
|
Loading…
Reference in New Issue
Block a user