Fix broken 360 snapshot saves

meow-7.2.2
Ansariel 2022-03-02 21:12:15 +01:00
parent 4525ae3901
commit 692f5d424e
2 changed files with 10 additions and 4 deletions

View File

@ -1182,6 +1182,10 @@ void LLMediaCtrl::handleMediaEvent(LLPluginClassMedia* self, EMediaEvent event)
}
else
{
// <FS:Ansariel> Fix broken 360 snapshot save
const std::vector<std::string> empty_response;
self->sendPickFileResponse(empty_response);
// </FS:Ansariel>
LLNotificationsUtil::add("MediaFileDownloadUnsupported");
}
};

View File

@ -3261,11 +3261,13 @@ void LLViewerMediaImpl::handleMediaEvent(LLPluginClassMedia* plugin, LLPluginCla
case LLViewerMediaObserver::MEDIA_EVENT_FILE_DOWNLOAD:
{
LL_DEBUGS("Media") << "Media event - file download requested - filename is " << plugin->getFileDownloadFilename() << LL_ENDL;
// <FS:Ansariel> Fix broken 360 snapshot save
//LL_DEBUGS("Media") << "Media event - file download requested - filename is " << plugin->getFileDownloadFilename() << LL_ENDL;
//unblock media plugin
const std::vector<std::string> empty_response;
plugin->sendPickFileResponse(empty_response);
////unblock media plugin
//const std::vector<std::string> empty_response;
//plugin->sendPickFileResponse(empty_response);
// </FS:Ansariel>
}
break;