Skip to content

Commit 3ac14e8

Browse files
authored
Disable sample rate warning by default to avoid flash on UI open (#337)
1 parent dbc4e05 commit 3ac14e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

NeuralAmpModeler/NeuralAmpModelerControls.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,8 @@ class NAMSampleRateWarningControl : public ITextControl
438438
NAMSampleRateWarningControl(const IRECT& bounds)
439439
: ITextControl(bounds, "WARNING: Run NAM at sample rate 48kHz!", _WARNING_TEXT)
440440
{
441+
// Default to disabled so that we don't get a flash every time we open the UI.
442+
SetDisabled(true);
441443
}
442444
void SetDisabled(bool disable) override
443445
{

0 commit comments

Comments
 (0)