mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-29 00:10:02 -05:00
sys: Fixed file modification detection
This commit is contained in:
@@ -70,6 +70,8 @@ namespace hex {
|
||||
}
|
||||
|
||||
this->m_links.erase(link);
|
||||
|
||||
ProjectFile::markDirty();
|
||||
}
|
||||
|
||||
void ViewDataProcessor::eraseNodes(const std::vector<int> &ids) {
|
||||
@@ -95,6 +97,8 @@ namespace hex {
|
||||
|
||||
this->m_nodes.erase(node);
|
||||
}
|
||||
|
||||
ProjectFile::markDirty();
|
||||
}
|
||||
|
||||
void ViewDataProcessor::processNodes() {
|
||||
@@ -181,11 +185,13 @@ namespace hex {
|
||||
} else if (unlocalizedCategory.empty()) {
|
||||
if (ImGui::MenuItem(LangEntry(unlocalizedName))) {
|
||||
node = function();
|
||||
ProjectFile::markDirty();
|
||||
}
|
||||
} else {
|
||||
if (ImGui::BeginMenu(LangEntry(unlocalizedCategory))) {
|
||||
if (ImGui::MenuItem(LangEntry(unlocalizedName))) {
|
||||
node = function();
|
||||
ProjectFile::markDirty();
|
||||
}
|
||||
ImGui::EndMenu();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user