Skip to content

Commit

Permalink
Don't auto set default if previous TF now missing
Browse files Browse the repository at this point in the history
User should select replacement - draws attention to the fact their previous preference is no longer available.
  • Loading branch information
firthm01 committed Feb 23, 2024
1 parent 5887bc3 commit c8be41b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,9 +247,10 @@ bool EarBinauralMonitoringAudioProcessor::readConfigFile() {
*oscInvertQuatY_ = props.getBoolValue("oscInvertQuatY", false);
*oscInvertQuatZ_ = props.getBoolValue("oscInvertQuatZ", false);
auto selectedDataFile = props.getValue("bearPreferredDataFile");
if (selectedDataFile.isEmpty() ||
!dataFileManager.setSelectedDataFile(selectedDataFile)) {
if (selectedDataFile.isEmpty()){
dataFileManager.setSelectedDataFileDefault();
} else {
dataFileManager.setSelectedDataFile(selectedDataFile); // Attempt even if no longer exists
}
configRestoreState = ConfigRestoreState::RESTORED;
return true;
Expand Down

0 comments on commit c8be41b

Please sign in to comment.