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 <[email protected]>
This commit is contained in:
committed by
Rene Gollent
parent
6ccc2b9f89
commit
7c96721b51
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user