Show message when library manifest cannot be downloaded

This commit is contained in:
Robin Gareus
2025-12-06 15:55:24 +01:00
parent 605de3eef4
commit df1d1644b8

View File

@@ -31,6 +31,7 @@
#include "ardour/rc_configuration.h"
#include "ardour/library.h"
#include "ardour_message.h"
#include "gui_thread.h"
#include "library_download_dialog.h"
#include "ui_config.h"
@@ -94,7 +95,10 @@ void
LibraryDownloadDialog::refill ()
{
ARDOUR::LibraryFetcher lf;
lf.get_descriptions ();
if (lf.get_descriptions () || 0 == lf.n_descriptions()) {
ArdourMessageDialog msg (*this, _("Failed to download library index.\nPlease check your internet connection."));
msg.run ();
}
if (lf.n_descriptions()) {
_model->clear ();