1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-17 23:56:05 +02:00

Added additional error to rename when def is locekd

This commit is contained in:
Brian Fiete 2019-09-07 15:18:32 -07:00
parent f2a2c27513
commit 3616305378
2 changed files with 50 additions and 13 deletions

View file

@ -96,6 +96,28 @@ namespace IDE
mFileDeleted = !File.Exists(mFilePath);
return mFileDeleted;
}
public bool IsLocked()
{
if (mEditWidget != null)
{
if (let sourceEditWidgetContent = mEditWidget.mEditWidgetContent as SourceEditWidgetContent)
{
if (sourceEditWidgetContent.mSourceViewPanel != null)
{
if (sourceEditWidgetContent.mSourceViewPanel.IsReadOnly)
return true;
}
}
}
for (var projectSource in mProjectSources)
{
if (projectSource.mProject.mLocked)
return true;
}
return false;
}
public ~this()
{