From 7c96721b517166d42a50f2dae481002272d6295a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Coursi=C3=A8re?= Date: Sun, 4 Nov 2018 23:51:03 +0000 Subject: [PATCH] Usability improvements in StartTeamWindow - Enlarge the window's width so a larger part of the path will fit in the TextBox. - Apply the existing path to the BFilePanel before browsing. It improve usability when you paste a path or type a new one in the TextBox then click on the browse button to choose the application or fine tune the directory. Please not that it is a best effort feature : if the file or the directory does not exist, the BFilePanel will fallback to the old behavior : showing the previously selected file/directory in the session (or home directory). Change-Id: I504a1ec72f9f7a236e2e37039961fddc58218eae Reviewed-on: https://review.haiku-os.org/672 Reviewed-by: Rene Gollent --- .../user_interface/gui/utility_windows/StartTeamWindow.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/apps/debugger/user_interface/gui/utility_windows/StartTeamWindow.cpp b/src/apps/debugger/user_interface/gui/utility_windows/StartTeamWindow.cpp index 4d2172e44f..2ddbfec397 100644 --- a/src/apps/debugger/user_interface/gui/utility_windows/StartTeamWindow.cpp +++ b/src/apps/debugger/user_interface/gui/utility_windows/StartTeamWindow.cpp @@ -90,7 +90,7 @@ StartTeamWindow::_Init() .Add(fStartButton) .End(); - fTeamTextControl->SetExplicitMinSize(BSize(200.0, B_SIZE_UNSET)); + fTeamTextControl->SetExplicitMinSize(BSize(300.0, B_SIZE_UNSET)); fGuideText->SetExplicitMaxSize(BSize(B_SIZE_UNLIMITED, B_SIZE_UNSET)); fStartButton->SetTarget(this); @@ -127,6 +127,9 @@ StartTeamWindow::MessageReceived(BMessage* message) fBrowseTeamPanel->SetMessage(message); } + fBrowseTeamPanel->SetPanelDirectory(fTeamTextControl->TextView() + ->Text()); + fBrowseTeamPanel->Show(); break; }