NeuralAmpModelerPlugin

Plugin for Neural Amp Modeler
Log | Files | Refs | Submodules | README | LICENSE

commit 7a9f29e947f62ab17b395e9891b5538927f56173
parent e099f5d920ba60bb6110bf2199bfd1ac5e6fd926
Author: Steven Atkinson <steven@atkinson.mn>
Date:   Sat, 10 Jun 2023 15:41:15 -0700

Open file browser to last driectory for models and IRs separately (#283)

Resolves #62
Diffstat:
MNeuralAmpModeler/NeuralAmpModelerControls.h | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/NeuralAmpModeler/NeuralAmpModelerControls.h b/NeuralAmpModeler/NeuralAmpModelerControls.h @@ -202,6 +202,7 @@ public: auto loadFileFunc = [&](IControl* pCaller) { WDL_String fileName; WDL_String path; + GetSelectedFileDirectory(path); pCaller->GetUI()->PromptForFile( fileName, path, EFileAction::Open, mExtension.Get(), [&](const WDL_String& fileName, const WDL_String& path) { if (fileName.GetLength()) @@ -296,6 +297,12 @@ public: } private: + void GetSelectedFileDirectory(WDL_String& path) { + GetSelectedFile(path); + path.remove_filepart(); + return; + } + WDL_String mDefaultLabelStr; IFileDialogCompletionHandlerFunc mCompletionHandlerFunc; NAMFileNameControl* mFileNameControl = nullptr;