Very minor UI improvement to saving work calendar changes to show the text in the edit button

This commit is contained in:
Dion Moult
2024-07-11 22:24:59 +10:00
parent 585eeb283a
commit 9f14769cba
@@ -955,8 +955,8 @@ class BIM_PT_work_calendars(Panel):
row.label(text=work_calendar["Name"] or "Unnamed", icon="VIEW_ORTHO")
if self.props.active_work_calendar_id == work_calendar_id:
if self.props.editing_type == "ATTRIBUTES":
row.operator("bim.edit_work_calendar", text="", icon="CHECKMARK")
row.operator("bim.disable_editing_work_calendar", text="Cancel", icon="CANCEL")
row.operator("bim.edit_work_calendar", icon="CHECKMARK")
row.operator("bim.disable_editing_work_calendar", text="", icon="CANCEL")
elif self.props.active_work_calendar_id:
row.operator("bim.remove_work_calendar", text="", icon="X").work_calendar = work_calendar_id
else: