File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -674,8 +674,6 @@ procedure TUIRibbon.DoCommandCreated(const pCommand: TUICommand);
674674 pCommand.Assign(lAction)
675675 { $ifdef DEBUG} else
676676 OutputDebugString(PChar(Format(sNoMappingFound, [lMarkupItem.Name , pCommand.CommandId]))){ $endif} ;
677- if pCommand.CommandType = TUICommandType.ctRecentItems then
678- fRecentItems := (pCommand as TUICommandRecentItems);
679677 end ;
680678 // Try mapping ctAnchor (Tabs) to an action. If found, assign properties.
681679 // If not found, at least try to localize it.
@@ -692,6 +690,8 @@ procedure TUIRibbon.DoCommandCreated(const pCommand: TUICommand);
692690 Self.LocalizeRibbonElement(pCommand, lMarkupItem);
693691 end ;// case/else
694692 end ;// if RibbonMapper
693+ if pCommand.CommandType = TUICommandType.ctRecentItems then
694+ fRecentItems := (pCommand as TUICommandRecentItems);
695695 if Assigned(FOnCommandCreate) then
696696 FOnCommandCreate(Self, pCommand);
697697end ;
You can’t perform that action at this time.
0 commit comments