Do not allow undo for not stored style
This commit is contained in:
parent
56b5e5edfb
commit
32573178c3
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue