Installer : truncated string in menu fields

* Delay the display of the alert just a little bit, to let the menu fields enough time to adjust.

Fixes ticket #3893.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33076 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre 2009-09-12 03:44:10 +00:00
parent 8b93f21c22
commit 0da53e3dd0
1 changed files with 9 additions and 4 deletions

View File

@ -50,6 +50,7 @@ const uint32 SHOW_BOTTOM_MESSAGE = 'iSBT';
const uint32 SETUP_MESSAGE = 'iSEP';
const uint32 START_SCAN = 'iSSC';
const uint32 PACKAGE_CHECKBOX = 'iPCB';
const uint32 ENCOURAGE_DRIVESETUP = 'iENC';
class LogoView : public BView {
public:
@ -382,6 +383,13 @@ InstallerWindow::MessageReceived(BMessage *msg)
fSizeView->SetText(string);
break;
}
case ENCOURAGE_DRIVESETUP:
{
(new BAlert("use drive setup", "No partitions have been found that "
"are suitable for installation. Please setup partitions and "
"initialize at least one partition with the Be File System." ,
"Ok"))->Go();
}
case MSG_STATUS_MESSAGE:
{
// TODO: Was this supposed to prevent status messages still arriving
@ -629,10 +637,7 @@ InstallerWindow::_UpdateControls()
if (!fEncouragedToSetupPartitions && !foundOneSuitableTarget) {
// Focus the users attention on the DriveSetup button
fEncouragedToSetupPartitions = true;
(new BAlert("use drive setup", "No partitions have been found that "
"are suitable for installation. Please setup partitions and "
"initialize at least one partition with the Be File System." ,
"Ok"))->Go();
PostMessage(ENCOURAGE_DRIVESETUP);
}
}