mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Use old tab name as template when rename
This commit is contained in:
parent
0cf7b25671
commit
4832819687
1 changed files with 7 additions and 0 deletions
|
|
@ -1225,8 +1225,15 @@ var
|
|||
sCaption: UTF8String;
|
||||
begin
|
||||
with frmMain do
|
||||
begin
|
||||
sCaption:= ActiveNotebook.Page[ActiveNotebook.PageIndex].Caption;
|
||||
if (Length(sCaption) > 0) and (sCaption[1] = '*') and
|
||||
(ActiveNotebook.Page[ActiveNotebook.PageIndex].LockState <> tlsNormal) and
|
||||
(tb_show_asterisk_for_locked in gDirTabOptions) then
|
||||
UTF8Delete(sCaption, 1, 1);
|
||||
if InputQuery(rsMsgTabRenameCaption, rsMsgTabRenamePrompt, sCaption) then
|
||||
ActiveNotebook.Page[ActiveNotebook.PageIndex].UpdateCaption(sCaption);
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TActs.cm_RemoveTab(param:string);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue