Fixed the enabling and disabling of file editor buttons