Renamed the preferences class to GuiPreferences

This commit is contained in:
Veronica K. B. Olsen
2020-05-28 23:07:56 +02:00
parent 1a9b6906c6
commit fb4a1ca266
4 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
# -*- coding: utf-8 -*-
from nw.gui.dialogs.about import GuiAbout
from nw.gui.dialogs.configeditor import GuiConfigEditor
from nw.gui.dialogs.preferences import GuiPreferences
from nw.gui.dialogs.docmerge import GuiDocMerge
from nw.gui.dialogs.docsplit import GuiDocSplit
from nw.gui.dialogs.itemeditor import GuiItemEditor
@@ -11,7 +11,7 @@ from nw.gui.dialogs.sessionlog import GuiSessionLogView
__all__ = [
"GuiAbout",
"GuiConfigEditor",
"GuiPreferences",
"GuiDocMerge",
"GuiDocSplit",
"GuiItemEditor",
@@ -44,12 +44,12 @@ from nw.constants import nwAlert, nwQuotes
logger = logging.getLogger(__name__)
class GuiConfigEditor(PagedDialog):
class GuiPreferences(PagedDialog):
def __init__(self, theParent, theProject):
PagedDialog.__init__(self, theParent)
logger.debug("Initialising ConfigEditor ...")
logger.debug("Initialising GuiPreferences ...")
self.mainConf = nw.CONFIG
self.theParent = theParent
@@ -74,7 +74,7 @@ class GuiConfigEditor(PagedDialog):
self.show()
logger.debug("ConfigEditor initialisation complete")
logger.debug("GuiPreferences initialisation complete")
return
@@ -122,7 +122,7 @@ class GuiConfigEditor(PagedDialog):
self.close()
return
# END Class GuiConfigEditor
# END Class GuiPreferences
class GuiConfigEditGeneralTab(QWidget):
@@ -228,7 +228,7 @@ class GuiConfigEditGeneralTab(QWidget):
## Backup Path
self.backupPath = self.mainConf.backupPath
self.backupGetPath = QPushButton(self.theTheme.getIcon("folder-open"),"Select Folder")
self.backupGetPath = QPushButton("Browse")
self.backupGetPath.clicked.connect(self._backupFolder)
self.backupPathRow = self.mainForm.addRow(
"Backup storage location",