Disabling history in {nav Settings > Configure > Advanced > History}
does not prevent showing and populating {nav File > Open Recent}.
The last target directory for Copy/Move/Link To dialog does not check
for history option too.
This patch only saves/restores file history if the option is enabled
and hides the menu entry if disabled.
The default value for LastTargetDir is removed and Copy/Move/Link
starts in the current folder until history is enabled and a path
is stored.
BUG: 332853
BUG: 391527