diff --git a/modules/gui.py b/modules/gui.py index e1cb404f..a727f3ce 100644 --- a/modules/gui.py +++ b/modules/gui.py @@ -4674,7 +4674,14 @@ def setter_extra(_=None): draw_settings_label("New label:") if imgui.button("Add", width=right_width): - async_thread.run(db.create_label()) + if len(Label.instances) == 63: + utils.push_popup( + msgbox.msgbox, "Alert!", + "You have reached the maximum number (63) of labels.", + MsgBox.warn + ) + else: + async_thread.run(db.create_label()) imgui.end_table() imgui.spacing()