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:
parent
f2a2c27513
commit
3616305378
2 changed files with 50 additions and 13 deletions
|
@ -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()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue