fix: hide "Edit Layout" context menu option when already in edit mode

This commit is contained in:
Shrihari Mahabal 2026-02-16 11:58:02 +05:30
parent 385be90daa
commit 08922a5e4c

View file

@ -296,6 +296,9 @@ class DesktopPage {
{
label: "Edit Layout",
icon: "edit",
condition: function () {
return !me.edit_mode;
},
onClick: function () {
me.$desktop_edit_button.hide();
frappe.new_desktop_icons = JSON.parse(JSON.stringify(frappe.desktop_icons));