mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-16 15:24:10 +02:00
Fixed file rename with entry in recent file list
This commit is contained in:
parent
64af84f0de
commit
05d5b5f594
1 changed files with 10 additions and 0 deletions
|
@ -12496,6 +12496,16 @@ namespace IDE
|
||||||
String newFileName = scope String();
|
String newFileName = scope String();
|
||||||
Path.GetFileName(newPath, newFileName);
|
Path.GetFileName(newPath, newFileName);
|
||||||
|
|
||||||
|
for (var entry in mRecentlyDisplayedFiles)
|
||||||
|
{
|
||||||
|
if (Path.Equals(entry, oldPath))
|
||||||
|
{
|
||||||
|
entry.Set(newPath);
|
||||||
|
UpdateRecentFileMenuItems();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
RenameEditData(oldPath, newPath);
|
RenameEditData(oldPath, newPath);
|
||||||
|
|
||||||
WithTabs(scope (tab) =>
|
WithTabs(scope (tab) =>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue