Skip to content

Commit

Permalink
Add "only show plugins with modgui" LV2 option
Browse files Browse the repository at this point in the history
Signed-off-by: falkTX <falktx@falktx.com>
  • Loading branch information
falkTX committed Dec 30, 2023
1 parent 71b8617 commit e5f248f
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod-ui
3 changes: 3 additions & 0 deletions src/systray/mod-app.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -910,6 +910,9 @@ class AppWindow : public QMainWindow
if (ui.cb_lv2_all_cv->isChecked())
env.insert("MOD_UI_ALLOW_REGULAR_CV", "1");

if (ui.cb_lv2_only_with_modgui->isChecked())
env.insert("MOD_UI_ONLY_SHOW_PLUGINS_WITH_MODGUI", "1");

processUI.setProcessEnvironment(env);
processUI.start();
}
Expand Down
10 changes: 10 additions & 0 deletions src/systray/mod-app.ui
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,16 @@ Smaller buffer gives less latency but consumes more CPU, while bigger buffers ha
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="cb_lv2_only_with_modgui">
<property name="toolTip">
<string>Hide plugins that do not have a custom MODGUI</string>
</property>
<property name="text">
<string>Only show plugins with a MODGUI</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
Expand Down

0 comments on commit e5f248f

Please sign in to comment.