reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

commit d84bfcf38ae6004c2b15585550e8f74710abc27c
parent 5613dd5e7062857b21c570b7aa6d250db370e2c1
Author: cfillion <cfillion@users.noreply.github.com>
Date:   Mon, 17 Jul 2017 18:42:43 -0400

browser: always show selection actions in the context menu

and never in the Actions button's menu

(related to issue #20)

Diffstat:
Msrc/browser.cpp | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/browser.cpp b/src/browser.cpp @@ -302,6 +302,12 @@ bool Browser::fillContextMenu(Menu &menu, const int index) m_currentIndex = index; fillMenu(menu); + if(!menu.empty()) + menu.addSeparator(); + + menu.addAction(AUTO_STR("&Select all"), IDC_SELECT); + menu.addAction(AUTO_STR("&Unselect all"), IDC_UNSELECT); + return true; } @@ -317,12 +323,6 @@ void Browser::fillMenu(Menu &menu) menu.addSeparator(); } - if(!entry) { - menu.addAction(AUTO_STR("&Select all"), IDC_SELECT); - menu.addAction(AUTO_STR("&Unselect all"), IDC_UNSELECT); - return; - } - if(entry->test(InstalledFlag)) { if(entry->test(OutOfDateFlag)) { auto_char installLabel[32];