mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-17 05:09:58 +01:00
BugFix color picker dialog
Also blocks UI until color dialog is closed
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user