fix bug when no programSettings.txt

This commit is contained in:
carina@hades 2024-02-21 18:50:40 -05:00
parent c6eabca9d1
commit 4c4c7f3860

View File

@ -340,19 +340,18 @@ void MainWindow::OpenDataPath(){
if( result > 0 ) {
leDataPath->setText(fileDialog.selectedFiles().at(0));
rawDataPath = leDataPath->text();
bnStartACQ->setEnabled(true);
bnStartACQ->setStyleSheet("background-color: green;");
chkSaveData->setEnabled(true);
}else{
leDataPath->clear();
rawDataPath = "";
bnStartACQ->setEnabled(false);
bnStartACQ->setStyleSheet("");
chkSaveData->setEnabled(false);
}
SaveProgramSettings();
LoadLastRunFile();
}
void MainWindow::OpenRecord(){
@ -1105,6 +1104,8 @@ void MainWindow::StartACQ(){
}
}
chkSaveData->setEnabled(false);
}
void MainWindow::StopACQ(){
@ -1193,6 +1194,8 @@ void MainWindow::StopACQ(){
}
}
chkSaveData->setEnabled(true);
}
void MainWindow::AutoRun(){ //TODO