mirror of https://github.com/WerWolv/ImHex.git
Open file dialog to not pop up if hex view wasn't open
This commit is contained in:
parent
0890043bf4
commit
3276ad9979
|
@ -168,6 +168,7 @@ namespace hex {
|
||||||
|
|
||||||
if (ImGui::BeginMenu("File")) {
|
if (ImGui::BeginMenu("File")) {
|
||||||
if (ImGui::MenuItem("Open File...", "CTRL + O")) {
|
if (ImGui::MenuItem("Open File...", "CTRL + O")) {
|
||||||
|
this->getWindowOpenState() = true;
|
||||||
View::doLater([]{ ImGui::OpenPopup("Open File"); });
|
View::doLater([]{ ImGui::OpenPopup("Open File"); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -182,6 +183,7 @@ namespace hex {
|
||||||
|
|
||||||
if (ImGui::BeginMenu("Import...")) {
|
if (ImGui::BeginMenu("Import...")) {
|
||||||
if (ImGui::MenuItem("Base64 File")) {
|
if (ImGui::MenuItem("Base64 File")) {
|
||||||
|
this->getWindowOpenState() = true;
|
||||||
View::doLater([]{ ImGui::OpenPopup("Open Base64 File"); });
|
View::doLater([]{ ImGui::OpenPopup("Open Base64 File"); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -220,10 +222,12 @@ namespace hex {
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
if (ImGui::MenuItem("Search", "CTRL + F")) {
|
if (ImGui::MenuItem("Search", "CTRL + F")) {
|
||||||
|
this->getWindowOpenState() = true;
|
||||||
View::doLater([]{ ImGui::OpenPopup("Search"); });
|
View::doLater([]{ ImGui::OpenPopup("Search"); });
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ImGui::MenuItem("Goto", "CTRL + G")) {
|
if (ImGui::MenuItem("Goto", "CTRL + G")) {
|
||||||
|
this->getWindowOpenState() = true;
|
||||||
View::doLater([]{ ImGui::OpenPopup("Goto"); });
|
View::doLater([]{ ImGui::OpenPopup("Goto"); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue