Skip to content

Commit 679971e

Browse files
authored
Set chosen item in popup menu (#299)
This means that on macOS the menu will pop-up highlighting the selected file
1 parent 5648807 commit 679971e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

NeuralAmpModeler/NeuralAmpModelerControls.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ class NAMFileBrowserControl : public IDirBrowseControlBase
248248
else
249249
{
250250
CheckSelectedItem();
251+
mMainMenu.SetChosenItemIdx(mSelectedIndex);
251252
pCaller->GetUI()->CreatePopupMenu(*this, mMainMenu, pCaller->GetRECT());
252253
}
253254
};

0 commit comments

Comments
 (0)