aboutsummaryrefslogtreecommitdiffstats
path: root/source/file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/file.cpp')
-rw-r--r--source/file.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/source/file.cpp b/source/file.cpp
index 3e5284e..f6222fa 100644
--- a/source/file.cpp
+++ b/source/file.cpp
@@ -75,8 +75,8 @@ void fileRenderMenu()
if (ImGui::MenuItem("Open")) {
fileAction = FileAction::Open;
- ImGuiFileDialog::Instance()->OpenDialog(
- "ChooseFileDlgKey", "Choose File", ".cpp", ".");
+ ImGuiFileDialog::Instance()->OpenModal(
+ "ChooseFileOpenSave", "Choose File", ".cpp", ".");
}
if (ImGui::BeginMenu("Open Template")) {
@@ -99,15 +99,15 @@ void fileRenderMenu()
saveCurrentFile();
} else {
fileAction = FileAction::SaveAs;
- ImGuiFileDialog::Instance()->OpenDialog(
- "ChooseFileDlgKey", "Choose File", ".cpp", ".");
+ ImGuiFileDialog::Instance()->OpenModal(
+ "ChooseFileOpenSave", "Choose File", ".cpp", ".");
}
}
if (ImGui::MenuItem("Save As")) {
fileAction = FileAction::SaveAs;
- ImGuiFileDialog::Instance()->OpenDialog(
- "ChooseFileDlgKey", "Choose File", ".cpp", ".");
+ ImGuiFileDialog::Instance()->OpenModal(
+ "ChooseFileOpenSave", "Choose File", ".cpp", ".");
}
ImGui::Separator();
@@ -122,7 +122,7 @@ void fileRenderMenu()
void fileRenderDialog()
{
- if (ImGuiFileDialog::Instance()->Display("ChooseFileDlgKey")) {
+ if (ImGuiFileDialog::Instance()->Display("ChooseFileOpenSave")) {
if (ImGuiFileDialog::Instance()->IsOk()) {
std::string filePathName = ImGuiFileDialog::Instance()->GetFilePathName();