diff --git a/src/eepp/ui/abstract/uiabstracttableview.cpp b/src/eepp/ui/abstract/uiabstracttableview.cpp index 292d962cd..45c12ac5e 100644 --- a/src/eepp/ui/abstract/uiabstracttableview.cpp +++ b/src/eepp/ui/abstract/uiabstracttableview.cpp @@ -139,6 +139,18 @@ void UIAbstractTableView::createOrUpdateColumns() { columnData( mMainColumn ).width = contentWidth - usedWidth >= mainColMaxWidth ? contentWidth - usedWidth : mainColMaxWidth; + usedWidth += columnData( mMainColumn ).width; + if ( usedWidth > contentWidth ) { + size_t longestCol = 0; + Float longestColWidth = columnData( 0 ).width; + for ( size_t col = 1; col < count; col++ ) { + if ( columnData( col ).width > longestColWidth ) { + longestCol = col; + longestColWidth = columnData( col ).width; + } + } + columnData( longestCol ).width = contentWidth - ( usedWidth - longestColWidth ); + } } mHeaderHeight = 0; diff --git a/src/tools/ecode/ecode.cpp b/src/tools/ecode/ecode.cpp index 82dcaaf96..4242b643b 100644 --- a/src/tools/ecode/ecode.cpp +++ b/src/tools/ecode/ecode.cpp @@ -2166,12 +2166,28 @@ std::map App::getLocalKeybindings() { } std::vector App::getUnlockedCommands() { - return { "fullscreen-toggle", "open-file", "open-folder", - "console-toggle", "close-app", "open-locatebar", - "open-global-search", "menu-toggle", "switch-side-panel", - "download-file-web", "create-new-terminal", "terminal-split-left", - "terminal-split-right", "terminal-split-top", "terminal-split-bottom", - "terminal-split-swap", "reopen-closed-tab", "plugin-manager" }; + return { "fullscreen-toggle", + "open-file", + "open-folder", + "console-toggle", + "close-app", + "open-locatebar", + "open-global-search", + "menu-toggle", + "switch-side-panel", + "download-file-web", + "create-new-terminal", + "terminal-split-left", + "terminal-split-right", + "terminal-split-top", + "terminal-split-bottom", + "terminal-split-swap", + "reopen-closed-tab", + "plugin-manager-open", + "debug-widget-tree-view", + "debug-draw-highlight-toggle", + "debug-draw-boxes-toggle", + "debug-draw-debug-data" }; } bool App::isUnlockedCommand( const std::string& command ) { @@ -2470,7 +2486,7 @@ void App::onCodeEditorCreated( UICodeEditor* editor, TextDocument& doc ) { doc.execute( "create-new-terminal" ); } ); doc.setCommand( "reopen-closed-tab", [&] { reopenClosedTab(); } ); - doc.setCommand( "plugin-manager", [&] { createPluginManagerUI(); } ); + doc.setCommand( "plugin-manager-open", [&] { createPluginManagerUI(); } ); editor->addEventListener( Event::OnDocumentSave, [&]( const Event* event ) { UICodeEditor* editor = event->getNode()->asType(); @@ -2725,7 +2741,7 @@ void App::createSettingsMenu() { mSettingsMenu->addSubMenu( i18n( "tools", "Tools" ), nullptr, createToolsMenu() ); mSettingsMenu->addSubMenu( i18n( "window", "Window" ), nullptr, createWindowMenu() ); mSettingsMenu->add( i18n( "plugin_manager", "Plugin Manager" ), findIcon( "package" ) ) - ->setId( "plugin-manager" ); + ->setId( "plugin-manager-open" ); mSettingsMenu->addSubMenu( i18n( "help", "Help" ), findIcon( "help" ), createHelpMenu() ); mSettingsMenu->addSeparator(); mSettingsMenu