From 83c883338fc3151e6afa039fb2ba70ee2d2b4d87 Mon Sep 17 00:00:00 2001 From: John Stebbins Date: Thu, 28 Sep 2017 09:34:15 -0700 Subject: 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. --- test/test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') 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" -- cgit v1.2.3