Skip to content

Commit 3e5274f

Browse files
author
Nikola Nyagolov
committed
Fixed model name shortening on selection
1 parent c21fd07 commit 3e5274f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

NeuralAmpModeler/NeuralAmpModelerControls.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ class NAMFileBrowserControl : public WithFileDrop<IDirBrowseControlBase>
440440
WDL_String fileName, path;
441441
GetSelectedFile(fileName);
442442

443-
const size_t maxChars = (strcmp(mExtension.Get(), "nam") == 0) ? 38 : 45;
443+
const size_t maxChars = (strcmp(mExtension.Get(), "nam") == 0) ? 35 : 45;
444444
mFileNameControl->SetLabelAndTooltipEllipsizing(fileName, maxChars);
445445

446446
mCompletionHandlerFunc(fileName, path);
@@ -470,7 +470,7 @@ class NAMFileBrowserControl : public WithFileDrop<IDirBrowseControlBase>
470470
SetupMenu();
471471
SetSelectedFile(fileName.Get());
472472

473-
const size_t maxChars = (strcmp(mExtension.Get(), "nam") == 0) ? 38 : 45;
473+
const size_t maxChars = (strcmp(mExtension.Get(), "nam") == 0) ? 35 : 45;
474474
mFileNameControl->SetLabelAndTooltipEllipsizing(fileName, maxChars);
475475
break;
476476
}

0 commit comments

Comments
 (0)