Cleanup.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40200 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -304,27 +304,25 @@ DrivesPage::_UpdateWizardButtons(DriveItem* item)
|
|||||||
if (fHasInstallableItems) {
|
if (fHasInstallableItems) {
|
||||||
fWizardView->SetPreviousButtonLabel(
|
fWizardView->SetPreviousButtonLabel(
|
||||||
B_TRANSLATE_COMMENT("Uninstall", "Button"));
|
B_TRANSLATE_COMMENT("Uninstall", "Button"));
|
||||||
if (fDrivesView->CurrentSelection() == -1) {
|
if (item == NULL) {
|
||||||
fWizardView->SetPreviousButtonEnabled(false);
|
fWizardView->SetPreviousButtonEnabled(false);
|
||||||
fWizardView->SetNextButtonEnabled(false);
|
fWizardView->SetNextButtonEnabled(false);
|
||||||
|
} else {
|
||||||
|
fWizardView->SetPreviousButtonEnabled(
|
||||||
|
item->CanBeInstalled() && item->IsInstalled());
|
||||||
|
fWizardView->SetNextButtonEnabled(item->CanBeInstalled());
|
||||||
|
|
||||||
|
fWizardView->SetNextButtonLabel(
|
||||||
|
item->IsInstalled() && item->CanBeInstalled()
|
||||||
|
? B_TRANSLATE_COMMENT("Update", "Button")
|
||||||
|
: B_TRANSLATE_COMMENT("Install", "Button"));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
fWizardView->SetNextButtonLabel(
|
fWizardView->SetNextButtonLabel(
|
||||||
B_TRANSLATE_COMMENT("Quit", "Button"));
|
B_TRANSLATE_COMMENT("Quit", "Button"));
|
||||||
}
|
|
||||||
|
|
||||||
if (item == NULL) {
|
|
||||||
fWizardView->SetPreviousButtonEnabled(false);
|
fWizardView->SetPreviousButtonEnabled(false);
|
||||||
fWizardView->SetNextButtonEnabled(false);
|
fWizardView->SetNextButtonEnabled(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
fWizardView->SetPreviousButtonEnabled(
|
|
||||||
item->CanBeInstalled() && item->IsInstalled());
|
|
||||||
fWizardView->SetNextButtonEnabled(item->CanBeInstalled());
|
|
||||||
|
|
||||||
fWizardView->SetNextButtonLabel(
|
|
||||||
item->IsInstalled() && item->CanBeInstalled()
|
|
||||||
? B_TRANSLATE_COMMENT("Update", "Button")
|
|
||||||
: B_TRANSLATE_COMMENT("Install", "Button"));
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user