mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Show error for editing binary file
This commit is contained in:
parent
f6c42b561a
commit
a355f32c1e
1 changed files with 3 additions and 1 deletions
|
@ -525,7 +525,9 @@ namespace IDE.ui
|
|||
}
|
||||
if (mSourceViewPanel != null)
|
||||
{
|
||||
if ((!sReadOnlyErrorShown) && (mSourceViewPanel.[Friend]mCurrentVersionPanel != null))
|
||||
if (mSourceViewPanel.mIsBinary)
|
||||
IDEApp.sApp.Fail("Cannot edit binary file.");
|
||||
else if ((!sReadOnlyErrorShown) && (mSourceViewPanel.[Friend]mCurrentVersionPanel != null))
|
||||
IDEApp.sApp.Fail("Switch to the current version of this file to edit it.");
|
||||
else
|
||||
IDEApp.Beep(IDEApp.MessageBeepType.Error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue