Merge commit '8e0b6ffbabb10f8a6e9ad7e9f07e0ba1d039a02e'
This commit is contained in:
commit
7b638538aa
@ -43,9 +43,16 @@ void DeleteConfirmation::draw(StudioContext &ctx) noexcept {
|
|||||||
case Stage::Open:
|
case Stage::Open:
|
||||||
drawWindow(ctx.tctx, m_open, [this] {
|
drawWindow(ctx.tctx, m_open, [this] {
|
||||||
ImGui::Text("Are you sure you want to delete %s?", m_path.c_str());
|
ImGui::Text("Are you sure you want to delete %s?", m_path.c_str());
|
||||||
if (ig::PopupControlsOkCancel(m_open, "Yes", "No") != ig::PopupResponse::None) {
|
switch (ig::PopupControlsOkCancel(m_open, "Yes", "No")) {
|
||||||
deleteFile.emit(m_path);
|
case ig::PopupResponse::None:
|
||||||
close();
|
break;
|
||||||
|
case ig::PopupResponse::OK:
|
||||||
|
deleteFile.emit(m_path);
|
||||||
|
close();
|
||||||
|
break;
|
||||||
|
case ig::PopupResponse::Cancel:
|
||||||
|
close();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user