LiMinggang / madedit-mod

MadEdit-Mod is a cross platform Text/Hex editor(based on the madedit project @ sourceforge)
GNU General Public License v3.0
124 stars 27 forks source link

Bugs in New Document setting #275

Closed NovaRain closed 5 years ago

NovaRain commented 5 years ago

Please provide the following information

Madedit-Mod version (or branch): 0.4.15

platform/architecture: win64

compiler and compiler version: VS2017

  1. When choosing UTF-8 as the default encoding for new files, the editor always adds BOM to new files even if the "with BOM" box is unchecked.
  2. The editor seems to have problem saving the default encoding setting when choosing one from the drop down list. It usually gets reset to System Default after closing the Options window. The only way I managed to get it working is: (1) start the editor with System Default as the default encoding for new files. (2) Tools -> Options -> New Document -> choose an encoding from the list (e.g. UTF-16LE) -> click OK. (3) open Options again -> "System Default" is checked -> check the displayed/grayed-out UTF-16LE -> click OK. Now the default encoding for new files is UTF-16LE.

BTW, is it possible to add an option to lock toolbars to prevent them from being dragged accidentally?

LiMinggang commented 5 years ago

Will do some investigation on toolbars.