From e2b9b47b215887511c2657cdec169adb713409cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Lucas=20Golini?= Date: Mon, 13 Apr 2026 15:42:27 -0300 Subject: [PATCH] A couple of nits. --- bin/assets/plugins/aiassistant.json | 10 ++++++++++ src/eepp/ui/uiwindow.cpp | 27 +++++++++++++++++---------- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/bin/assets/plugins/aiassistant.json b/bin/assets/plugins/aiassistant.json index a96f89027..9db498901 100644 --- a/bin/assets/plugins/aiassistant.json +++ b/bin/assets/plugins/aiassistant.json @@ -529,6 +529,16 @@ "enabled": true, "command": "pi-acp", "args": [] + }, + "codex-acp": { + "enabled": true, + "command": "codex-acp", + "args": [] + }, + "qwen-code": { + "enabled": true, + "command": "qwen", + "args": ["--acp"] } } } diff --git a/src/eepp/ui/uiwindow.cpp b/src/eepp/ui/uiwindow.cpp index 24a62c241..a90d6d7e4 100644 --- a/src/eepp/ui/uiwindow.cpp +++ b/src/eepp/ui/uiwindow.cpp @@ -1420,19 +1420,25 @@ UIWindow* UIWindow::setMinWindowSize( Sizef size ) { Sizef UIWindow::getMinWindowSizeWithDecoration() { Sizef size( getMinWindowSize() ); - if ( NULL != mWindowDecoration ) { + + if ( mBorderLeft && mBorderRight ) size.x += mBorderLeft->getSize().getWidth() + mBorderRight->getSize().getWidth(); + + if ( mWindowDecoration && mBorderBottom ) size.y += mWindowDecoration->getSize().getHeight() + mBorderBottom->getSize().getHeight(); - } + return size; } Sizef UIWindow::getSizeWithoutDecoration() { Sizef size( getSize() ); - if ( NULL != mWindowDecoration ) { + + if ( mBorderLeft && mBorderRight ) size.x -= mBorderLeft->getSize().getWidth() + mBorderRight->getSize().getWidth(); + + if ( mWindowDecoration && mBorderBottom ) size.y -= mWindowDecoration->getSize().getHeight() + mBorderBottom->getSize().getHeight(); - } + return size; } @@ -1443,18 +1449,19 @@ Sizef UIWindow::getMinWindowTitleSizeRequired() { mPadding.Left + mPadding.Right, 0 ); - if ( NULL != mWindowDecoration ) { + if ( mBorderLeft && mBorderRight ) size.x += mBorderLeft->getSize().getWidth() + mBorderRight->getSize().getWidth(); - size.y += mWindowDecoration->getSize().getHeight(); - } - if ( NULL != mButtonClose ) + if ( mWindowDecoration ) + size.y += mWindowDecoration->getSize().getHeight(); + + if ( mButtonClose ) size.x += mButtonClose->getSize().getWidth(); - if ( NULL != mButtonMaximize ) + if ( mButtonMaximize ) size.x += mButtonMaximize->getSize().getWidth(); - if ( NULL != mButtonMinimize ) + if ( mButtonMinimize ) size.x += mButtonMinimize->getSize().getWidth(); return size;