ui: Fixed automatic pattern loading, added better pattern browse popup

This commit is contained in:
WerWolv
2021-09-26 21:18:25 +02:00
parent e46807c600
commit 5db608c3fc
13 changed files with 102 additions and 29 deletions

View File

@@ -74,7 +74,7 @@ namespace hex::magic {
auto magicFiles = getMagicFiles();
if (magicFiles.has_value()) {
magic_t ctx = magic_open(MAGIC_MIME);
magic_t ctx = magic_open(MAGIC_MIME_TYPE);
ON_SCOPE_EXIT { magic_close(ctx); };
if (magic_load(ctx, magicFiles->c_str()) == 0)