mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-01 02:30:25 +03:00
AI Assistant UI refactor.
Fixes in debugger an autocomplete plugin (from some of the new changes in both cases). Fix UITextView not updating the aligment after padding change.
This commit is contained in:
@@ -692,12 +692,15 @@ void AppConfig::loadDocuments( UICodeEditorSplitter* editorSplitter, json j,
|
||||
} else {
|
||||
auto found = tabWidgetTypes.find( file["type"] );
|
||||
if ( found != tabWidgetTypes.end() ) {
|
||||
auto widget = found->second.onLoad( file );
|
||||
auto [widget, icon, title] = found->second.onLoad( file );
|
||||
|
||||
editorSplitter->createWidgetInTabWidget(
|
||||
curTabWidget, widget, file.contains( "title" ) ? file["title"] : "" );
|
||||
auto [tab, _] = editorSplitter->createWidgetInTabWidget(
|
||||
curTabWidget, widget, !title.empty() ? title : file.value( "title", "" ) );
|
||||
editorSplitter->removeUnusedTab( curTabWidget, true, false );
|
||||
|
||||
if ( icon )
|
||||
tab->setIcon( icon );
|
||||
|
||||
if ( curTabWidget->getTabCount() == totalToLoad )
|
||||
curTabWidget->setTabSelected(
|
||||
eeclamp<Int32>( currentPage, 0, curTabWidget->getTabCount() - 1 ) );
|
||||
|
||||
Reference in New Issue
Block a user