MCPcopy Create free account
hub / github.com/BespokeSynth/BespokeSynth / CreatePrefsFileIfNonexistent

Method CreatePrefsFileIfNonexistent

Source/UserPrefsEditor.cpp:118–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void 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
129void UserPrefsEditor::UpdateDropdowns(std::vector<DropdownList*> toUpdate)
130{

Callers 1

PollMethod · 0.80

Calls 2

GetUserPrefsPathMethod · 0.80
openMethod · 0.80

Tested by

no test coverage detected