Add event handler for model download.

This commit is contained in:
kovacsv 2022-11-29 21:03:05 +01:00
parent 5ac604c172
commit dc3d0546d6

View File

@ -586,6 +586,7 @@ export class Website
});
if (FeatureSet.DownloadModel) {
AddButton (this.toolbar, 'download', 'Download model', ['only_full_width', 'only_on_model'], () => {
HandleEvent ('model_downloaded', '');
let importer = this.modelLoaderUI.GetImporter ();
DownloadModel (importer);
});