sfx2/source/control/unoctitm.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 85ced7dad83c9d804ded113e6baf37a2814cfd34 Author: Pranam Lashkari <[email protected]> AuthorDate: Tue Nov 19 00:04:30 2024 +0530 Commit: Pranam Lashkari <[email protected]> CommitDate: Tue Nov 19 15:04:25 2024 +0100 LOK: use boolean or disabled payload for EditDoc it is more appropriate state variable for this particular command, as in many cases its disabled and that can not be treated as false as document still maybe editable Change-Id: Ib19a0cc087518a18bf295abd08b93815606af1fa Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176736 Reviewed-by: Caolán McNamara <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> Tested-by: Caolán McNamara <[email protected]> (cherry picked from commit 04375f2a31cc6c233a015215f06682462b30425f) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176748 Reviewed-by: Pranam Lashkari <[email protected]> Tested-by: Jenkins diff --git a/sfx2/source/control/unoctitm.cxx b/sfx2/source/control/unoctitm.cxx index fb39d340ebb5..1a4661b7740e 100644 --- a/sfx2/source/control/unoctitm.cxx +++ b/sfx2/source/control/unoctitm.cxx @@ -1192,7 +1192,6 @@ constexpr auto handlers = frozen::make_unordered_map<std::u16string_view, Payloa { u"NormalMultiPaneGUI", IsActivePayload }, { u"NotesMode", IsActivePayload }, { u"SlideMasterPage", IsActivePayload }, - { u"EditDoc", IsActivePayload }, { u"CharFontName", FontNamePayload }, @@ -1391,6 +1390,7 @@ constexpr auto handlers = frozen::make_unordered_map<std::u16string_view, Payloa { u"ToggleMergeCells", BooleanOrDisabledPayload }, { u"SheetRightToLeft", BooleanOrDisabledPayload }, { u"ToggleSheetGrid", BooleanOrDisabledPayload }, + { u"EditDoc", BooleanOrDisabledPayload }, { u"Position", PointPayload }, { u"FreezePanesColumn", PointPayload },
