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