IDE, Debugger: Callstack, don't trigger updates for current frame, if already selected.

This commit is contained in:
Martin 2025-06-18 16:35:33 +02:00
parent 949b335b2e
commit 175ac42f2b

View File

@ -714,13 +714,17 @@ end;
procedure TCallStackDlg.actSetAsCurrentClick(Sender : TObject);
var
Entry: TIdeCallStackEntry;
cs: TIdeCallStack;
begin
try
DisableAllActions;
Entry := GetCurrentEntry;
if Entry = nil then Exit;
GetSelectedCallstack.ChangeCurrentIndex(Entry.Index);
cs := GetSelectedCallstack;
if Entry.Index = cs.NewCurrentIndex then Exit;
cs.ChangeCurrentIndex(Entry.Index);
if GetSelectedSnapshot <> nil
then CallStackMonitor.NotifyCurrent; // TODO: move to snapshot callstack object
finally