Do not allow undo for not stored style

This commit is contained in:
Filip Sykala 2022-02-21 21:37:08 +01:00
parent 56b5e5edfb
commit 32573178c3

View file

@ -1126,7 +1126,7 @@ void GLGizmoEmboss::draw_style_list() {
}
}
if (is_changed) {
if (is_stored && is_changed) {
ImGui::SameLine();
if (draw_button(IconType::undo)) {
bool is_path_changed = font_item.path != m_stored_font_item->path;