Added show line endings option.

Fixed monospace font command.
This commit is contained in:
Martín Lucas Golini
2023-01-20 02:30:04 -03:00
parent 4edfa15e52
commit fb502ab8ae
7 changed files with 54 additions and 3 deletions

View File

@@ -78,6 +78,7 @@ void AppConfig::load( const std::string& confPath, std::string& keybindingsPath,
windowState.position.y = iniState.getValueI( "window", "y", -1 );
editor.showLineNumbers = ini.getValueB( "editor", "show_line_numbers", true );
editor.showWhiteSpaces = ini.getValueB( "editor", "show_white_spaces", true );
editor.showLineEndings = ini.getValueB( "editor", "show_line_endings", true );
editor.highlightMatchingBracket =
ini.getValueB( "editor", "highlight_matching_brackets", true );
editor.highlightCurrentLine = ini.getValueB( "editor", "highlight_current_line", true );
@@ -187,6 +188,7 @@ void AppConfig::save( const std::vector<std::string>& recentFiles,
String::join( urlEncode( recentFolders ), ';' ) );
ini.setValueB( "editor", "show_line_numbers", editor.showLineNumbers );
ini.setValueB( "editor", "show_white_spaces", editor.showWhiteSpaces );
ini.setValueB( "editor", "show_line_endings", editor.showLineEndings );
ini.setValueB( "editor", "highlight_matching_brackets", editor.highlightMatchingBracket );
ini.setValueB( "editor", "highlight_current_line", editor.highlightCurrentLine );
ini.setValueB( "editor", "vertical_scrollbar", editor.verticalScrollbar );