You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fRecentItems := nil; //Destroying the window handle does not necessarily call OnDestroyUICommand for the recent items command, so we might have to set the reference to nil here.
1262
1263
fLoaded := False;
1263
1264
end;
1264
1265
@@ -1372,6 +1373,8 @@ function TUIRibbon.OnDestroyUICommand(CommandId: UInt32; TypeId: _UICommandType;
1372
1373
lCommand: TUICommand;
1373
1374
begin
1374
1375
//FCommands.Remove(CommandId); <- Code commented, because we might still have references to the command at this point. Since it is not ref-counted, we must not destroy it yet.
1376
+
if TUICommandType(TypeId) = TUICommandType.ctRecentItems then
1377
+
fRecentItems := nil;
1375
1378
if Assigned(FOnCommandDestroy) and TryGetCommand(CommandId, lCommand) then
0 commit comments