[bugfix] changed code order for QSettings
This commit is contained in:
parent
f7af1d0b1b
commit
530a629d15
@ -142,9 +142,6 @@ class MainWindow(QMainWindow):
|
||||
# setup UI
|
||||
self.setupUi()
|
||||
|
||||
if settings.value('compclass', None) is None:
|
||||
settings.setValue('compclass', SetChannelComponents())
|
||||
|
||||
if settings.value("user/FullName", None) is None:
|
||||
fulluser = QInputDialog.getText(self, "Enter Name:", "Full name")
|
||||
settings.setValue("user/FullName", fulluser)
|
||||
@ -164,6 +161,8 @@ class MainWindow(QMainWindow):
|
||||
dirname = QFileDialog().getExistingDirectory(
|
||||
caption='Choose data root ...')
|
||||
settings.setValue("data/dataRoot", dirname)
|
||||
if settings.value('compclass', None) is None:
|
||||
settings.setValue('compclass', SetChannelComponents())
|
||||
settings.sync()
|
||||
|
||||
self.filteroptions = {}
|
||||
|
@ -1 +1 @@
|
||||
0fb6-dirty
|
||||
f7af-dirty
|
||||
|
Loading…
Reference in New Issue
Block a user