Install Dependencies: Minor code cleanup
This commit is contained in:
parent
05ed820ce7
commit
bbdfa623ef
1 changed files with 8 additions and 7 deletions
|
@ -32,14 +32,15 @@ REGISTER_DIALOG(install_dependencies)
|
|||
|
||||
void install_dependencies::pre_show(window& window)
|
||||
{
|
||||
label& lbl = find_widget<label>(&window, "label", false);
|
||||
lbl.set_label(t_string("The selected add-on has the following dependency, which is not currently installed. Do you wish to install it before continuing?",
|
||||
"The selected add-on has the following dependencies, which are not currently installed. Do you wish to install them before continuing?",
|
||||
addons_.size(),
|
||||
"wesnoth"));
|
||||
find_widget<label>(&window, "label", false).set_label(
|
||||
t_string(
|
||||
"The selected add-on has the following dependency, which is not currently installed. Do you wish to install it before continuing?",
|
||||
"The selected add-on has the following dependencies, which are not currently installed. Do you wish to install them before continuing?",
|
||||
addons_.size(),
|
||||
"wesnoth")
|
||||
);
|
||||
|
||||
addon_list& list = find_widget<addon_list>(&window, "dependencies", false);
|
||||
list.set_addons(addons_);
|
||||
find_widget<addon_list>(&window, "dependencies", false).set_addons(addons_);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue