summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2017-09-28 09:34:15 -0700
committerJohn Stebbins <[email protected]>2017-11-06 08:19:49 -0800
commit83c883338fc3151e6afa039fb2ba70ee2d2b4d87 (patch)
tree16118ae9c7cdf60e8dbf9eaf0ff6d34a4065937d /test
parent637e9b814ab2a064db47a830564f263dad54fdc2 (diff)
LinGui: Add "Category" dropdown to preset save dialog
This replaces the "New Folder" option in the presets menu. It enforces the folder structure we have agreed to and hopefully helps the user keep things organized. Note that users are allowed to save a custom preset to the same "Category" as an official preset. When they do this, a new custom category is created with the same name and the preset is saved in that folder.
Diffstat (limited to 'test')
-rw-r--r--test/test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test.c b/test/test.c
index e2336dab0..1e3238989 100644
--- a/test/test.c
+++ b/test/test.c
@@ -3260,7 +3260,8 @@ static hb_dict_t * PreparePreset(const char *preset_name)
if (preset_name != NULL)
{
- preset = hb_preset_search(preset_name, 1 /*recurse*/);
+ preset = hb_preset_search(preset_name, 1 /*recurse*/,
+ HB_PRESET_TYPE_ALL);
if (preset == NULL)
{
fprintf(stderr, "Invalid preset %s\n"