mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Added show line endings option.
Fixed monospace font command.
This commit is contained in:
@@ -1007,6 +1007,9 @@ UIMenu* SettingsMenu::createViewMenu() {
|
||||
mViewMenu->addCheckBox( i18n( "show_white_spaces", "Show White Spaces" ) )
|
||||
->setActive( mApp->getConfig().editor.showWhiteSpaces )
|
||||
->setId( "show-white-spaces" );
|
||||
mViewMenu->addCheckBox( i18n( "show_line_endings", "Show Line Endings" ) )
|
||||
->setActive( mApp->getConfig().editor.showLineEndings )
|
||||
->setId( "show-line-endings" );
|
||||
mViewMenu->addCheckBox( i18n( "show_doc_info", "Show Document Info" ) )
|
||||
->setActive( mApp->getConfig().editor.showDocInfo )
|
||||
->setId( "show-doc-info" );
|
||||
@@ -1075,6 +1078,11 @@ UIMenu* SettingsMenu::createViewMenu() {
|
||||
mSplitter->forEachEditor( [&]( UICodeEditor* editor ) {
|
||||
editor->setShowWhitespaces( mApp->getConfig().editor.showWhiteSpaces );
|
||||
} );
|
||||
} else if ( item->getId() == "show-line-endings" ) {
|
||||
mApp->getConfig().editor.showLineEndings = item->asType<UIMenuCheckBox>()->isActive();
|
||||
mSplitter->forEachEditor( [&]( UICodeEditor* editor ) {
|
||||
editor->setShowLineEndings( mApp->getConfig().editor.showLineEndings );
|
||||
} );
|
||||
} else if ( item->getId() == "show-doc-info" ) {
|
||||
mApp->getConfig().editor.showDocInfo = item->asType<UIMenuCheckBox>()->isActive();
|
||||
if ( mApp->getDocInfo() )
|
||||
|
||||
Reference in New Issue
Block a user