mirror of https://github.com/WerWolv/ImHex.git
Compare commits
2 Commits
b29d184488
...
c90aa0a742
Author | SHA1 | Date |
---|---|---|
WerWolv | c90aa0a742 | |
WerWolv | 7f0bdea212 |
|
@ -636,9 +636,6 @@ namespace hex {
|
|||
});
|
||||
|
||||
glfwSetDropCallback(this->m_window, [](GLFWwindow *, int count, const char **paths) {
|
||||
if (count != 1)
|
||||
return;
|
||||
|
||||
for (int i = 0; i < count; i++) {
|
||||
auto path = std::fs::path(reinterpret_cast<const char8_t *>(paths[i]));
|
||||
|
||||
|
|
|
@ -520,6 +520,9 @@ namespace hex::plugin::builtin::ui {
|
|||
|
||||
auto sortSpecs = ImGui::TableGetSortSpecs();
|
||||
|
||||
if (patterns.empty())
|
||||
sortedPatterns.clear();
|
||||
|
||||
if (!patterns.empty() && (sortSpecs->SpecsDirty || sortedPatterns.empty())) {
|
||||
sortedPatterns.clear();
|
||||
std::transform(patterns.begin(), patterns.end(), std::back_inserter(sortedPatterns), [](const std::shared_ptr<pl::ptrn::Pattern> &pattern) {
|
||||
|
|
Loading…
Reference in New Issue