| 116 | } |
| 117 | |
| 118 | void UserPrefsEditor::CreatePrefsFileIfNonexistent() |
| 119 | { |
| 120 | UpdateDropdowns({}); |
| 121 | |
| 122 | if (!juce::File(TheSynth->GetUserPrefsPath()).existsAsFile()) |
| 123 | { |
| 124 | Save(); |
| 125 | UserPrefs.mUserPrefsFile.open(TheSynth->GetUserPrefsPath()); |
| 126 | } |
| 127 | } |
| 128 | |
| 129 | void UserPrefsEditor::UpdateDropdowns(std::vector<DropdownList*> toUpdate) |
| 130 | { |
no test coverage detected