Fixed bug where deleting a folder with samples in it won't remove the samples from favorites and other minor fixes.

This commit is contained in:
apoorv569
2021-06-18 19:08:39 +05:30
parent a6275f5e6c
commit f0df300c30
2 changed files with 158 additions and 66 deletions
+5 -1
View File
@@ -923,7 +923,11 @@ Database::LoadDatabase(wxVector<wxVector<wxVariant>>& vecSet,
{
// wxLogDebug("Another folder by the name %s already exist. Please try with a different name.",
// folder_name);
favorite_tree.AppendItem(found_item, filename);
if (show_extension)
favorite_tree.AppendItem(found_item,
wxString::Format("%s.%s", filename, file_extension));
else
favorite_tree.AppendItem(found_item, filename);
}
// else
// {