mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-31 18:46:29 +03:00
Minor fixes.
This commit is contained in:
@@ -2519,6 +2519,10 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) {
|
||||
editor->setAutoCloseXMLTags( config.autoCloseXMLTags );
|
||||
editor->setLineSpacing( config.lineSpacing );
|
||||
editor->setCursorBlinkTime( config.cursorBlinkingTime );
|
||||
editor->setLineWrapKeepIndentation( config.wrapKeepIndentation );
|
||||
editor->setLineWrapMode( config.wrapMode );
|
||||
editor->setLineWrapType( config.wrapType );
|
||||
|
||||
doc.setAutoCloseBrackets( !mConfig.editor.autoCloseBrackets.empty() );
|
||||
doc.setAutoCloseBracketsPairs( makeAutoClosePairs( mConfig.editor.autoCloseBrackets ) );
|
||||
doc.setLineEnding( docc.lineEndings );
|
||||
|
||||
@@ -92,6 +92,7 @@ void IconManager::init( UISceneNode* sceneNode, FontTrueType* iconFont, FontTrue
|
||||
{ "filetype-pkm", 0xF3C5 },
|
||||
{ "settings", 0xF0E3 },
|
||||
{ "stop", 0xF1A0 },
|
||||
{ "text-wrap", 0xF200 },
|
||||
};
|
||||
|
||||
for ( const auto& icon : icons )
|
||||
|
||||
@@ -1231,7 +1231,8 @@ UIMenu* SettingsMenu::createViewMenu() {
|
||||
|
||||
mLineWrapMenu = UIPopUpMenu::New();
|
||||
|
||||
mViewMenu->addSubMenu( i18n( "line_wrap", "Line Wrap" ), nullptr, mLineWrapMenu )
|
||||
mViewMenu
|
||||
->addSubMenu( i18n( "line_wrap", "Line Wrap" ), findIcon( "text-wrap" ), mLineWrapMenu )
|
||||
->on( Event::OnMenuShow, [this]( auto ) {
|
||||
if ( mLineWrapMenu->getCount() == 0 ) {
|
||||
UIPopUpMenu* wrapModeMenu = UIPopUpMenu::New();
|
||||
@@ -1315,6 +1316,8 @@ UIMenu* SettingsMenu::createViewMenu() {
|
||||
wrapKeepIndentation->setActive( cfg.editor.wrapKeepIndentation );
|
||||
} );
|
||||
|
||||
mViewMenu->addSeparator();
|
||||
|
||||
mViewMenu->addCheckBox( i18n( "show_line_numbers", "Show Line Numbers" ) )
|
||||
->setActive( mApp->getConfig().editor.showLineNumbers )
|
||||
->setId( "show-line-numbers" );
|
||||
|
||||
Reference in New Issue
Block a user