BugFix color picker dialog

Also blocks UI until color dialog is closed
This commit is contained in:
Bruno Herbelin
2023-04-12 22:51:53 +02:00
parent c507d0ed7e
commit f4add84a13
2 changed files with 20 additions and 11 deletions

View File

@@ -792,6 +792,16 @@ void UserInterface::NewFrame()
}
}
// overlay to ensure file color dialog is closed after use
if (DialogToolkit::ColorPickerDialog::busy()){
if (!ImGui::IsPopupOpen("##Color"))
ImGui::OpenPopup("##Color");
if (ImGui::BeginPopup("##Color")) {
ImGui::Text("Validate color dialog to return to vimix.");
ImGui::EndPopup();
}
}
// popup to inform to save before close
if (pending_save_on_exit) {
if (!ImGui::IsPopupOpen(MENU_SAVE_ON_EXIT))