SL-16755 Show alert that download is not supported instead of failing silently

meow-7.2.2
Andrey Kleshchev 2022-02-02 00:10:52 +02:00 committed by Ansariel
parent 60314ad80e
commit 57c4dee284
1 changed files with 6 additions and 0 deletions

View File

@ -71,6 +71,8 @@
#include "llmediaentry.h"
#include "llmediadataclient.h"
#include "llmeshrepository.h"
#include "llnotifications.h"
#include "llnotificationsutil.h"
#include "llagent.h"
#include "llviewermediafocus.h"
#include "lldatapacker.h"
@ -3152,6 +3154,10 @@ void LLVOVolume::mediaEvent(LLViewerMediaImpl *impl, LLPluginClassMedia* plugin,
}
}
break;
case LLViewerMediaObserver::MEDIA_EVENT_FILE_DOWNLOAD:
LLNotificationsUtil::add("MediaFileDownloadUnsupported");
break;
default:
break;