mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-05 11:13:26 +00:00
addon/mg: Fix terrible application of logic...
...causing the Add-ons Manager to never show up when the server list is empty, even when there are publishable add-ons installed
This commit is contained in:
parent
8333789e96
commit
9419e19f9c
@ -547,6 +547,7 @@ void show_addons_manager_dialog(display& disp, addons_client& client, addons_lis
|
||||
if(option_ids.empty()) {
|
||||
if(!updates_only && can_publish_ids.empty() && can_delete_ids.empty()) {
|
||||
gui2::show_error_message(disp.video(), _("There are no add-ons available for download from this server."));
|
||||
return;
|
||||
} else if(updates_only) {
|
||||
if(installed_addons().empty()) {
|
||||
gui2::show_transient_message(disp.video(), _("Add-ons Manager"), _("There are no add-ons installed."));
|
||||
@ -554,9 +555,8 @@ void show_addons_manager_dialog(display& disp, addons_client& client, addons_lis
|
||||
gui2::show_transient_message(disp.video(), _("Add-ons Manager"), _("All add-ons are up to date."));
|
||||
}
|
||||
view = VIEW_ALL;
|
||||
return;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
int result;
|
||||
|
Loading…
x
Reference in New Issue
Block a user