Skip to content

Commit

Permalink
Remember model and IR path history separately.
Browse files Browse the repository at this point in the history
sdatkinson committed Mar 25, 2023
1 parent ffdbdb5 commit 5212fb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions NeuralAmpModeler/NeuralAmpModeler.cpp
Original file line number Diff line number Diff line change
@@ -220,7 +220,8 @@ NeuralAmpModeler::NeuralAmpModeler(const InstanceInfo &info)
// Model loader button
auto loadNAM = [&, pGraphics](IControl *pCaller) {
WDL_String initFileName;
WDL_String initPath(this->mNAMPath.remove_filepart());
WDL_String initPath(this->mNAMPath.Get());
initPath.remove_filepart();
pGraphics->PromptForFile(
initFileName, initPath, EFileAction::Open, "nam",
[&](const WDL_String &fileName, const WDL_String &path) {
@@ -245,7 +246,8 @@ NeuralAmpModeler::NeuralAmpModeler(const InstanceInfo &info)
// IR loader button
auto loadIR = [&, pGraphics](IControl *pCaller) {
WDL_String initFileName;
WDL_String initPath(this->mIRPath.remove_filepart());
WDL_String initPath(this->mIRPath.Get());
initPath.remove_filepart();
pGraphics->PromptForFile(
initFileName, initPath, EFileAction::Open, "wav",
[&](const WDL_String &fileName, const WDL_String &path) {

0 comments on commit 5212fb0

Please sign in to comment.