Skip to content

Commit 5e20c53

Browse files
committed
fix: tree with keyboard actions shows wrong captions
1 parent 4322372 commit 5e20c53

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

source/main.pas

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2069,6 +2069,8 @@ procedure TMainForm.FormCreate(Sender: TObject);
20692069
FActionList1DefaultCaptions := TStringList.Create;
20702070
FActionList1DefaultHints := TStringList.Create;
20712071
for i:=0 to ActionList1.ActionCount-1 do begin
2072+
Action := TAction(ActionList1.Actions[i]);
2073+
Action.ShortCut := AppSettings.ReadInt(asActionShortcut1, Action.Name, Action.ShortCut);
20722074
FActionList1DefaultCaptions.Insert(i, Action.Caption);
20732075
FActionList1DefaultHints.Insert(i, Action.Hint);
20742076
end;

source/preferences.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,7 @@ procedure TfrmPreferences.TreeShortcutItemsInitChildren(Sender: TBaseVirtualTree
12441244
end;
12451245
end;
12461246

1247+
12471248
procedure TfrmPreferences.TreeShortcutItemsInitNode(Sender: TBaseVirtualTree; ParentNode, Node: PVirtualNode;
12481249
var InitialStates: TVirtualNodeInitStates);
12491250
var

0 commit comments

Comments
 (0)